mirror of
https://github.com/facebook/react.git
synced 2026-02-22 03:42:05 +00:00
## Summary - yarn.lock diff +-6249, **small pr** - use jest-environment-jsdom by default - uncaught error from jsdom is an error object instead of strings - abortSignal.reason is read-only in jsdom and node, https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/reason ## How did you test this change? ci green --------- Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
22 lines
784 B
JSON
22 lines
784 B
JSON
{
|
|
"dependencies": {
|
|
"@babel/plugin-transform-modules-commonjs": "^7.10.4",
|
|
"@babel/preset-react": "^7.10.4",
|
|
"jest": "^29.4.1"
|
|
},
|
|
"jest": {
|
|
"setupFilesAfterEnv": [
|
|
"./setupTests.js"
|
|
]
|
|
},
|
|
"scripts": {
|
|
"install-all": "cd react-14 && yarn && cd ../react-15 && yarn && cd ../react-16 && yarn && cd ../react-17 && yarn && cd ..",
|
|
"lint": "node lint-runtimes.js",
|
|
"pretest": "yarn install-all && yarn lint",
|
|
"test-jsxdev-dev": "BABEL_ENV=development NODE_ENV=development jest --env=jsdom",
|
|
"test-jsx-dev": "BABEL_ENV=production NODE_ENV=development jest --env=jsdom",
|
|
"test-jsx-prod": "BABEL_ENV=production NODE_ENV=production jest --env=jsdom",
|
|
"test": "yarn test-jsxdev-dev && yarn test-jsx-dev && yarn test-jsx-prod"
|
|
}
|
|
}
|