mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
16 lines
283 B
TypeScript
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)
|
|
})
|