Skip to content

Commit

Permalink
test(react-ui): fix start from ide (#3395)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshatikhin committed Apr 16, 2024
1 parent 54785e4 commit 6a75547
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/react-ui-smoke-test/.babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ module.exports = {
'@babel/preset-env',
'@babel/typescript',
],
plugins: [['@babel/plugin-transform-runtime', { version: '7.8.3' }]],
plugins: [['@babel/plugin-transform-runtime', { version: '7.16.5' }]],
};
3 changes: 3 additions & 0 deletions packages/react-ui-smoke-test/react-ui-ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"react": ">=16.9",
"react-dom": ">=16.9"
},
"dependencies": {
"@babel/runtime": "7.16.5"
},
"devDependencies": {
"@emotion/react": "^11.1.5",
"@emotion/server": "^11.0.0",
Expand Down
7 changes: 7 additions & 0 deletions packages/react-ui-smoke-test/react-ui-ssr/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
# yarn lockfile v1


"@babel/runtime@7.16.5":
version "7.16.5"
resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.16.5.tgz#7f3e34bf8bdbbadf03fbb7b1ea0d929569c9487a"
integrity sha512-TXWihFIS3Pyv5hzR7j6ihmeLkZfrXGxAr5UfSl8CHf+6q/wpiYDkUau0czckpYG8QmnCIuPpdLtuA9VmuGGyMA==
dependencies:
regenerator-runtime "^0.13.4"

"@babel/runtime@^7.7.2":
version "7.11.2"
resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.11.2.tgz#f549c13c754cc40b87644b9fa9f09a6a95fe0736"
Expand Down
4 changes: 2 additions & 2 deletions packages/react-ui-validations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"test": "jest",
"test:watch": "jest --watch",
"test:pack": "jest --testMatch ** --testPathPattern=\"scripts/check-pack-files.js\"",
"creevey": "wait-on -t 300000 http-get://localhost:8081/ && cross-env BABEL_ENV=cjs creevey -c .creevey/config.js",
"creevey:update": "cross-env BABEL_ENV=cjs creevey -c .creevey/config.js --update",
"creevey": "wait-on -t 300000 http-get://localhost:8081/ && creevey -c .creevey/config.js",
"creevey:update": "creevey -c .creevey/config.js --update",
"creevey:ui": "yarn creevey --ui"
},
"main": "./index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-ui/.babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ module.exports = {
env: {
cjs: {
presets: [['@babel/preset-env', { loose: true, modules: 'commonjs', targets: { ie: '11' } }]],
plugins: [['@babel/plugin-transform-runtime', { version: '7.8.3' }]],
plugins: [['@babel/plugin-transform-runtime', { version: '7.16.5' }]],
},
},
presets: [['@babel/preset-env', { loose: true, modules: false }], '@babel/typescript', '@babel/preset-react'],
plugins: [
['@babel/plugin-transform-runtime', { useESModules: true, version: '7.8.3' }],
['@babel/plugin-transform-runtime', { useESModules: true, version: '7.16.5' }],
['@babel/plugin-proposal-decorators', { legacy: true }],
],
};
2 changes: 1 addition & 1 deletion packages/react-ui/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
'\\.(css|less)$': 'identity-obj-proxy',
},
transform: {
'\\.[jt]sx?$': 'babel-jest',
'\\.[jt]sx?$': ['babel-jest', { envName: 'cjs' }],
},
testRegex: '__tests__(\\\\|/).*(\\.|-)test\\.(j|t)sx?$',
testEnvironment: 'jsdom',
Expand Down
2 changes: 1 addition & 1 deletion packages/react-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"fix": "run-s -c fix:*",
"fix:eslint": "yarn lint:eslint --fix",
"fix:prettier": "yarn prettier --write .",
"test": "cross-env BABEL_ENV=cjs jest --detectOpenHandles",
"test": "jest --detectOpenHandles",
"test:watch": "yarn test --watch",
"creevey": "wait-on -t 300000 http-get://localhost:6060/ && cross-env BABEL_ENV=cjs creevey -c .creevey/config.js",
"creevey:update": "cross-env BABEL_ENV=cjs creevey -c .creevey/config.js --update",
Expand Down

0 comments on commit 6a75547

Please sign in to comment.