Skip to content

Commit

Permalink
Add missing awaits
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Jan 17, 2025
1 parent 10579f1 commit 830bb3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ for (const setupFile of positionals) {
!options.quiet && console.log('Running tests:', setupFile);
process.env.SETUP = setupFile;

const { pass, fail } = status(setupFile);
const { pass, fail } = await status(setupFile);

try {
execSync(
Expand All @@ -186,9 +186,9 @@ for (const setupFile of positionals) {
stdio: ['ignore', options.verbose ? 'inherit' : 'ignore', 'inherit'],
}
);
pass();
await pass();
} catch {
fail();
await fail();
}
}

Expand Down

0 comments on commit 830bb3a

Please sign in to comment.