mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-06-03 19:04:44 +08:00

* feat: api keys crud - integration v0.1 * feat: add test cases * fix: add review comments * feat: api integration and ui updates * feat: update test cases * feat: update expiriesAt request payload * feat: ui feedback updates * feat: api keys crud - integration v0.1 * feat: add test cases * fix: add review comments * feat: api integration and ui updates * feat: update test cases * feat: update expiriesAt request payload * feat: ui feedback updates * feat: handle light mode styles * feat: hide pagination on single page * feat: do not show last used if not present or 0 * feat: show tooltip on role --------- Co-authored-by: Rajat Dabade <rajat@signoz.io>
31 lines
715 B
TypeScript
31 lines
715 B
TypeScript
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
/* eslint-disable object-shorthand */
|
|
/* eslint-disable func-names */
|
|
|
|
/**
|
|
* Adds custom matchers from the react testing library to all tests
|
|
*/
|
|
import '@testing-library/jest-dom';
|
|
import 'jest-styled-components';
|
|
import './src/styles.scss';
|
|
|
|
import { server } from './src/mocks-server/server';
|
|
// Establish API mocking before all tests.
|
|
|
|
// Mock window.matchMedia
|
|
window.matchMedia =
|
|
window.matchMedia ||
|
|
function (): any {
|
|
return {
|
|
matches: false,
|
|
addListener: function () {},
|
|
removeListener: function () {},
|
|
};
|
|
};
|
|
|
|
beforeAll(() => server.listen());
|
|
|
|
afterEach(() => server.resetHandlers());
|
|
|
|
afterAll(() => server.close());
|