Skip to content
Snippets Groups Projects
Verified Commit f4d922bb authored by Loïs Poujade's avatar Loïs Poujade
Browse files

upgraded material ui

parent 95529aee
No related branches found
No related tags found
No related merge requests found
Pipeline #1194 passed
import { withStyles } from '@material-ui/core'; import { withStyles } from '@mui/material';
import { alpha } from '@material-ui/core/styles/colorManipulator'; import ClosedCaption from '@mui/icons-material/ClosedCaption';
import ClosedCaption from '@material-ui/icons/ClosedCaption'; import Skeleton from '@mui/lab/Skeleton';
import Skeleton from '@material-ui/lab/Skeleton';
describe('Open example', () => { describe('Open example', () => {
......
This diff is collapsed.
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
import { JSDOM } from 'jsdom'; // eslint-disable-line import/no-extraneous-dependencies import { JSDOM } from 'jsdom'; // eslint-disable-line import/no-extraneous-dependencies
import fetch from 'jest-fetch-mock'; // eslint-disable-line import/no-extraneous-dependencies import fetch from 'jest-fetch-mock'; // eslint-disable-line import/no-extraneous-dependencies
import Enzyme from 'enzyme'; // eslint-disable-line import/no-extraneous-dependencies import Enzyme from 'enzyme'; // eslint-disable-line import/no-extraneous-dependencies
import Adapter from 'enzyme-adapter-react-16'; // eslint-disable-line import/no-extraneous-dependencies // import Adapter from 'enzyme-adapter-react-16'; // eslint-disable-line import/no-extraneous-dependencies
const jsdom = new JSDOM('<!doctype html><html><body><div id="main"></div></body></html>', { url: 'https://localhost' }); const jsdom = new JSDOM('<!doctype html><html><body><div id="main"></div></body></html>', { url: 'https://localhost' });
const { window } = jsdom; const { window } = jsdom;
...@@ -55,7 +55,8 @@ const copyProps = (src, target) => { ...@@ -55,7 +55,8 @@ const copyProps = (src, target) => {
*/ */
copyProps(window, global); copyProps(window, global);
Enzyme.configure({ adapter: new Adapter() }); // Enzyme.configure({ adapter: new Adapter() });
// Enzyme.configure();
jest.mock('react-i18next', () => ({ jest.mock('react-i18next', () => ({
// this mock makes sure any components using the translate HoC receive the t function as a prop // this mock makes sure any components using the translate HoC receive the t function as a prop
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment