mirror of
https://github.com/hanzoai/vitest.git
synced 2026-10-30 14:46:34 +00:00
27 lines
450 B
TypeScript
27 lines
450 B
TypeScript
import {
|
|
afterAll,
|
|
beforeAll,
|
|
describe,
|
|
it,
|
|
} from 'vitest';
|
|
|
|
describe('suite with beforeAll', () => {
|
|
beforeAll(() => {
|
|
throw new Error('beforeAll error');
|
|
});
|
|
|
|
it('ok 1', () => {});
|
|
it('ok 2', () => {});
|
|
it.skip('skip 1', () => {});
|
|
});
|
|
|
|
describe('suite with afterAll', () => {
|
|
afterAll(() => {
|
|
throw new Error('afterAll error');
|
|
});
|
|
|
|
it('ok 1', () => {});
|
|
it('ok 2', () => {});
|
|
it.skip('skip 1', () => {});
|
|
});
|