Files
SDK-TypeScript/src/vitest.setup.unit.ts
chatenium d7422efcf0
All checks were successful
Setup testing environment and test the code / build (push) Successful in 1m2s
Quick-fix
2026-04-08 16:56:09 +02:00

7 lines
252 B
TypeScript

import {beforeAll, afterEach, afterAll, vi} from 'vitest';
import {mockServer} from './mocks/node.js';
beforeAll(() => mockServer.listen({onUnhandledRequest: 'error'}));
afterEach(() => mockServer.resetHandlers());
afterAll(() => mockServer.close());