mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-24 09:28:41 +00:00
14 lines
425 B
TypeScript
14 lines
425 B
TypeScript
import type { TestHooks } from '../types'
|
|
|
|
export default function setupJest (hooks: TestHooks) {
|
|
// TODO: add globals existing check to provide better error message
|
|
// @ts-expect-error jest types
|
|
test('setup', hooks.setup, 60000)
|
|
// @ts-expect-error jest types
|
|
beforeEach(hooks.beforeEach)
|
|
// @ts-expect-error jest types
|
|
afterEach(hooks.afterEach)
|
|
// @ts-expect-error jest types
|
|
afterAll(hooks.afterAll)
|
|
}
|