107171d46a
* 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
19 lines
446 B
TypeScript
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();
|
|
});
|
|
});
|