Skip to content

Commit

Permalink
[Tests] npm run react: use legacy peer deps, due to npm 7
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Feb 23, 2021
1 parent 486b8ee commit e78b84e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ script:
- 'if [ -n "${KARMA-}" ]; then npm run tests-karma ; fi'
- 'if [ -n "${COVERAGE-}" ] && [ "${TRAVIS_BRANCH-}" = "master" ]; then npm run cover; cat ./coverage/lcov.info | ./node_modules/.bin/coveralls ; fi'
install:
- 'if [ -n "${LINT-}" ]; then npm install --legacy-bundling ; else npm install ; fi'
- 'if [ -n "${LINT-}" ]; then NPM_CONFIG_LEGACY_PEER_DEPS=true npm install --legacy-bundling ; else npm install ; fi'
env:
global:
- TEST=true
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"lint": "eslint --ext .js,.jsx src test",
"mocha": "mocha ./test/_helpers",
"storybook:uninstall": "npm uninstall --no-save @storybook/react && rimraf node_modules/@storybook node_modules/react-modal node_modules/react-dom-factories",
"react": "enzyme-adapter-react-install 16",
"react": "NPM_CONFIG_LEGACY_PEER_DEPS=true enzyme-adapter-react-install 16",
"pretest": "npm run --silent lint",
"pretests-only": "npm run react",
"tests-only": "npm run mocha --silent",
Expand Down

0 comments on commit e78b84e

Please sign in to comment.