mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-02 06:00:40 +08:00

* refactor: setup wrapper for all the providers * refactor: done with unit test configuration and service layer testing * refactor: checking for multiple services * refactor: updated test cases added table sort * refactor: moved hooks mocking to test-utils * refactor: added the search test case * refactor: updated the handler with mocks data
11 lines
330 B
TypeScript
11 lines
330 B
TypeScript
import { server } from './server';
|
|
// Establish API mocking before all tests.
|
|
beforeAll(() => server.listen());
|
|
|
|
// Reset any request handlers that we may add during the tests,
|
|
// so they don't affect other tests.
|
|
afterEach(() => server.resetHandlers());
|
|
|
|
// Clean up after the tests are finished.
|
|
afterAll(() => server.close());
|