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