Migrate from Jest to Vitest

This migrates our tests from using the Jest testing framework to Vitest.
This commit is contained in:
regexowl 2024-06-24 08:44:06 +02:00 committed by Ondřej Ezr
parent ac60043199
commit da16a42128
8 changed files with 1891 additions and 168 deletions

5
src/test/setup.ts Normal file
View file

@ -0,0 +1,5 @@
import { server } from './mocks/server';
beforeAll(() => server.listen({ onUnhandledRequest: 'error' }));
afterAll(() => server.close());
afterEach(() => server.resetHandlers());