mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-16 10:54:49 +00:00
13 lines
292 B
TypeScript
13 lines
292 B
TypeScript
|
import { createTest, exposeContextToEnv } from '@nuxt/test-utils'
|
||
|
|
||
|
const hooks = createTest(JSON.parse(process.env.NUXT_TEST_OPTIONS || '{}'))
|
||
|
|
||
|
export const setup = async () => {
|
||
|
await hooks.setup()
|
||
|
exposeContextToEnv()
|
||
|
}
|
||
|
|
||
|
export const teardown = async () => {
|
||
|
await hooks.afterAll()
|
||
|
}
|