-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[test] Check a11y tree inclusion in CI only
- Loading branch information
Showing
5 changed files
with
32 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
import enzyme from 'enzyme/build/index'; | ||
import enzyme from 'enzyme'; | ||
import Adapter from 'enzyme-adapter-react-16'; | ||
import * as testingLibrary from '@testing-library/react/pure'; | ||
import consoleError from './consoleError'; | ||
import './initMatchers'; | ||
|
||
consoleError(); | ||
|
||
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 | ||
testingLibrary.configure({ defaultHidden: !process.env.CI }); |