First commit
This commit is contained in:
6
vitest.setup.ts
Normal file
6
vitest.setup.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { beforeAll, afterEach, afterAll, vi } from 'vitest';
|
||||
import {mockServer} from "./src/mocks/node";
|
||||
|
||||
beforeAll(() => mockServer.listen({ onUnhandledRequest: 'error' }));
|
||||
afterEach(() => mockServer.resetHandlers());
|
||||
afterAll(() => mockServer.close());
|
||||
Reference in New Issue
Block a user