mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-08 09:52:26 +00:00
10 lines
304 B
TypeScript
10 lines
304 B
TypeScript
|
import type { TestHooks } from '../types'
|
||
|
|
||
|
export default async function setupVitest (hooks: TestHooks) {
|
||
|
const vitest = await import('vitest')
|
||
|
vitest.test('setup nuxt', hooks.setup, 60000)
|
||
|
vitest.beforeEach(hooks.beforeEach)
|
||
|
vitest.afterEach(hooks.afterEach)
|
||
|
vitest.afterAll(hooks.afterAll)
|
||
|
}
|