Skip to content

Commit

Permalink
chore: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Dec 30, 2023
1 parent cb9a659 commit 26cc32e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/runner/src/fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ export function withFixtures(fn: Function, testContext?: TestContext) {

if (!cleanupFnArrayMap.has(context))
cleanupFnArrayMap.set(context, [])

const cleanupFnArray = cleanupFnArrayMap.get(context)!

const usedFixtures = fixtures.filter(({ prop }) => usedProps.includes(prop))
Expand Down
2 changes: 1 addition & 1 deletion test/core/test/fixture-concurrent-beforeEach.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface MyFixtures {
}

export const myTest = test.extend<MyFixtures>({
// [repro] ordered must be { a, b } and not { b, a }
// [repro] fixture order must be { a, b } and not { b, a }
a: async ({}, use) => {
globalA++
await new Promise<void>(resolve => setTimeout(resolve, 200)) // [repro] async fixture
Expand Down

0 comments on commit 26cc32e

Please sign in to comment.