vitest/test/cli/fixtures/fails/hooks-called.test.ts
2024-04-26 15:43:27 +02:00

16 lines
283 B
TypeScript

import { afterAll, beforeAll, expect, test } from 'vitest'
beforeAll(() => {
// should both appear in snapshot
throw new Error('before all')
})
afterAll(() => {
// should both appear in snapshot
throw new Error('after all')
})
test('1 = 1', () => {
expect(1).toBe(1)
})