vega-frontend-monorepo/apps/trading/specs/index.spec.tsx
Dexter Edwards 107171d46a
renaming test files (#351)
* renaming test files

* add eslint plugin jest

* enable linting rule and additional rules

* fix a metric ton of linting errors

* fix lint errors

* remove export
2022-05-12 13:32:14 +01:00

19 lines
446 B
TypeScript

import React from 'react';
import { render } from '@testing-library/react';
import Index from '../pages/index.page';
jest.mock('@vegaprotocol/ui-toolkit', () => {
const original = jest.requireActual('@vegaprotocol/ui-toolkit');
return {
...original,
AgGridDynamic: () => <div>AgGrid</div>,
};
});
describe('Index', () => {
it('should render successfully', () => {
render(<Index />);
expect(true).toBeTruthy();
});
});