Skip to content

Commit

Permalink
chore: remove unnecessary await
Browse files Browse the repository at this point in the history
  • Loading branch information
yesmeck committed Feb 16, 2022
1 parent 199f981 commit 6c68a1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/jest-core/src/runJest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export default async function runJest({
}),
);

allTests = await sequencer.sort(allTests);
allTests = sequencer.sort(allTests);

if (globalConfig.listTests) {
const testsPaths = Array.from(new Set(allTests.map(test => test.path)));
Expand All @@ -213,7 +213,7 @@ export default async function runJest({
if (failedTestsCache) {
allTests = failedTestsCache.filterTests(allTests);
} else {
allTests = await sequencer.allFailedTests(allTests);
allTests = sequencer.allFailedTests(allTests);
}
}

Expand Down Expand Up @@ -285,7 +285,7 @@ export default async function runJest({

const results = await scheduler.scheduleTests(allTests, testWatcher);

await sequencer.cacheResults(allTests, results);
sequencer.cacheResults(allTests, results);

if (hasTests) {
await runGlobalHook({allTests, globalConfig, moduleName: 'globalTeardown'});
Expand Down

0 comments on commit 6c68a1b

Please sign in to comment.