mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
fix(test-utils): use beforeAll
for setup (#3696)
This commit is contained in:
parent
d1e23ea773
commit
e67ed55de3
@ -2,7 +2,7 @@ import type { TestHooks } from '../types'
|
|||||||
|
|
||||||
export default async function setupVitest (hooks: TestHooks) {
|
export default async function setupVitest (hooks: TestHooks) {
|
||||||
const vitest = await import('vitest')
|
const vitest = await import('vitest')
|
||||||
vitest.test('setup nuxt', hooks.setup, 60000)
|
vitest.beforeAll(hooks.setup, 60000)
|
||||||
vitest.beforeEach(hooks.beforeEach)
|
vitest.beforeEach(hooks.beforeEach)
|
||||||
vitest.afterEach(hooks.afterEach)
|
vitest.afterEach(hooks.afterEach)
|
||||||
vitest.afterAll(hooks.afterAll)
|
vitest.afterAll(hooks.afterAll)
|
||||||
|
Loading…
Reference in New Issue
Block a user