mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-22 18:06:35 +00: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());
|