Project

General

Profile

« Previous | Next » 

Revision 32a4050a

Added by Dan Seethaler over 6 years ago

Fixes #21179 - Upgrade to

Enzyme needs to be upgraded to support react@16. In upgrading I
found that using jest's snapshot feature would greatly improve
several of the tests that were in place. I've changed these
tests to use snapshots and added enzyme-to-json to support
snapshot testing with enzyme wrappers.

http://projects.theforeman.org/issues/21179

View differences:

package.json
"compression-webpack-plugin": "~0.3.1",
"css-loader": "^0.23.1",
"dotenv": "^2.0.0",
"enzyme": "^2.4.1",
"enzyme": "^3.0.0",
"enzyme-adapter-react-15": "^1.0.0",
"enzyme-to-json": "^3.0.1",
"eslint": "^3.3.1",
"eslint-plugin-react": "^6.1.2",
"expose-loader": "~0.6.0",
......
"lint": "./node_modules/.bin/eslint -c .eslintrc webpack/ $(./script/foreman_plugins_eslint.js) || exit 0",
"test": "node node_modules/.bin/jest",
"test:watch": "node node_modules/.bin/jest --watchAll",
"test:current": "node node_modules/.bin/jest --watch",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",
"deploy-storybook": "storybook-to-ghpages"

Also available in: Unified diff