Skip to content

Commit

Permalink
test: use jest-environment-jsdom-sixtee for test
Browse files Browse the repository at this point in the history
this fixes the error `MutationObserver is not a constructor` for waitFor in `react-testing-library`
testing-library/dom-testing-library#477
  • Loading branch information
keingsw committed Mar 26, 2020
1 parent a85ff29 commit 299908f
Show file tree
Hide file tree
Showing 2 changed files with 442 additions and 26 deletions.
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,21 @@
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"test": "react-scripts test --env=jest-environment-jsdom-sixteen",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"production": [">0.2%", "not dead", "not op_mini all"],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"jest-environment-jsdom-sixteen": "^1.0.3"
}
}
Loading

0 comments on commit 299908f

Please sign in to comment.