Skip to content

Commit

Permalink
[core] Upgrade monorepo (mui#5560)
Browse files Browse the repository at this point in the history
  • Loading branch information
m4theushw authored and alexfauquette committed Aug 26, 2022
1 parent ce85789 commit f7a116e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
15 changes: 14 additions & 1 deletion test/utils/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,21 @@ import './licenseRelease';
import './licenseKey';
import { unstable_resetCleanupTracking } from '@mui/x-data-grid';
import { unstable_resetCleanupTracking as unstable_resetCleanupTrackingPro } from '@mui/x-data-grid-pro';
import enzyme from 'enzyme';
import Adapter from '@eps1lon/enzyme-adapter-react-17';
import * as testingLibrary from '@testing-library/react/pure';
import '@mui/monorepo/test/utils/initMatchers';

export * from '@mui/monorepo/test/utils/init';
enzyme.configure({ adapter: new Adapter() });

// checking if an element is hidden is quite expensive
// this is only done in CI as a fail safe. It can still explicitly be checked
// in the test files which helps documenting what is part of the DOM but hidden
// from assistive technology
const defaultHidden = !process.env.CI;
// adds verbosity for something that might be confusing
console.warn(`${defaultHidden ? 'including' : 'excluding'} inaccessible elements by default`);
testingLibrary.configure({ defaultHidden });

const mochaHooks = {
beforeEach: [],
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2638,8 +2638,8 @@
react-transition-group "^4.4.2"

"@mui/monorepo@https://github.com/mui/material-ui.git#master":
version "5.8.2"
resolved "https://github.com/mui/material-ui.git#0fa01accc92c2945f24d4d6f15f0f269cf6e17e8"
version "5.9.1"
resolved "https://github.com/mui/material-ui.git#ac89270144071abde6b40ca4e80c961889f8734a"

"@mui/private-theming@^5.8.0", "@mui/private-theming@^5.9.1":
version "5.9.1"
Expand Down

0 comments on commit f7a116e

Please sign in to comment.