Skip to content

Commit c10d27e

Browse files
committed
test: update
1 parent 9c64588 commit c10d27e

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

test/core/test/fixture-options.test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@ import { afterAll, beforeEach, describe, expect, test, vi } from 'vitest'
33
const mockServer = { setup: vi.fn(), teardown: vi.fn() }
44
const FnA = vi.fn()
55

6-
const myTest = test.extend({
6+
const myTest = test.extend<{
7+
autoFixture: void
8+
normalFixture: any[]
9+
}>({
710
autoFixture: [async ({}, use) => {
811
await mockServer.setup()
912
await use()
1013
await mockServer.teardown()
1114
}, { auto: true }],
1215

13-
normalFixture: [async ({}, use) => {
16+
normalFixture: [async () => {
1417
await FnA()
15-
await use()
1618
}, {}],
1719
})
1820

0 commit comments

Comments
 (0)