Skip to content

Commit 56e8d22

Browse files
committed
fix resolutions for tests that switch react versions
1 parent 7f35e06 commit 56e8d22

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@
2020
"test:watch": "yarn test -- --watch",
2121
"test:devtools": "jest react-async-devtools/src",
2222
"test:components": "jest src/Async.spec.js --collectCoverageFrom=src/Async.js",
23-
"test:backwards": "yarn add -D -W [email protected] [email protected] && yarn test:components",
24-
"test:forwards": "yarn add -D -W react@next react-dom@next && yarn test",
25-
"test:latest": "yarn add -D -W react@latest react-dom@latest && yarn test",
23+
"test:backwards": "yarn add -D -W [email protected] [email protected] && yarn resolutions:fix-react && yarn test:components",
24+
"test:forwards": "yarn add -D -W react@next react-dom@next && yarn resolutions:fix-react && yarn test",
25+
"test:latest": "yarn add -D -W react@latest react-dom@latest && yarn resolutions:fix-react && yarn test",
2626
"test:compat": "yarn test:backwards && yarn test:forwards && yarn test:latest",
2727
"test:examples": "CI=1 lerna run --scope '*-example' test -- --passWithNoTests --watchAll=false",
2828
"test:chromatic": "chromatic --app-code iiua39bmt0j --build-script-name build:storybook",
29+
"resolutions:fix-react": "jq '.resolutions.react = .devDependencies.react|.resolutions.\"react-dom\"=.devDependencies.react' package.json > package.json.new; mv package.json.new package.json; yarn install",
2930
"ci": "yarn lint && yarn test:compat && yarn test:examples",
3031
"build:packages": "lerna run --scope 'react-async*' build",
3132
"build:examples": "lerna run --scope '*-example' build",
@@ -67,6 +68,7 @@
6768
"eslint-plugin-react-hooks": "2.1.2",
6869
"jest": "24.9.0",
6970
"lerna": "3.18.1",
71+
"node-jq": "1.10.3",
7072
"now": "16.3.1",
7173
"npm-run-all": "4.1.5",
7274
"prettier": "1.18.2",

0 commit comments

Comments
 (0)