Skip to content

Commit

Permalink
fix jest config unable to discover babel due to rootDir change
Browse files Browse the repository at this point in the history
  • Loading branch information
thymikee authored and mdjastrzebski committed Jul 18, 2022
1 parent 0a04137 commit e6b0f2b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 21 deletions.
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
'@babel/preset-env',
{
targets: {
node: '10',
node: '14',
},
bugfixes: true,
},
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@babel/cli": "^7.8.4",
"@babel/core": "^7.9.0",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-transform-flow-strip-types": "^7.16.0",
"@babel/plugin-transform-flow-strip-types": "^7.18.0",
"@babel/preset-env": "^7.9.6",
"@babel/preset-flow": "^7.9.0",
"@babel/preset-react": "^7.9.4",
Expand Down Expand Up @@ -82,10 +82,10 @@
"prepare": "yarn build"
},
"jest": {
"preset": "../jest-preset",
"rootDir": "./src",
"preset": "./jest-preset",
"testPathIgnorePatterns": [
"timerUtils"
"timerUtils",
"examples/"
],
"testTimeout": 60000,
"transformIgnorePatterns": [
Expand Down
17 changes: 1 addition & 16 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -931,13 +931,6 @@
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"

"@babel/plugin-syntax-flow@^7.16.0":
version "7.16.0"
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.16.0.tgz#07427021d093ed77019408221beaf0272bbcfaec"
integrity sha512-dH91yCo0RyqfzWgoM5Ji9ir8fQ+uFbt9KHM3d2x4jZOuHS6wNA+CRmRUP/BWCsHG2bjc7A2Way6AvH1eQk0wig==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"

"@babel/plugin-syntax-flow@^7.16.7":
version "7.16.7"
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.16.7.tgz#202b147e5892b8452bbb0bb269c7ed2539ab8832"
Expand Down Expand Up @@ -1147,15 +1140,7 @@
"@babel/helper-plugin-utils" "^7.16.7"
"@babel/plugin-syntax-flow" "^7.16.7"

"@babel/plugin-transform-flow-strip-types@^7.16.0":
version "7.16.0"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.16.0.tgz#edd968dc2041c1b69e451a262e948d6654a79dc2"
integrity sha512-vs/F5roOaO/+WxKfp9PkvLsAyj0G+Q0zbFimHm9X2KDgabN2XmNFoAafmeGEYspUlIF9+MvVmyek9UyHiqeG/w==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
"@babel/plugin-syntax-flow" "^7.16.0"

"@babel/plugin-transform-flow-strip-types@^7.18.6":
"@babel/plugin-transform-flow-strip-types@^7.18.0", "@babel/plugin-transform-flow-strip-types@^7.18.6":
version "7.18.9"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.18.9.tgz#5b4cc521426263b5ce08893a2db41097ceba35bf"
integrity sha512-+G6rp2zRuOAInY5wcggsx4+QVao1qPM0osC9fTUVlAV3zOrzTCnrMAFVnR6+a3T8wz1wFIH7KhYMcMB3u1n80A==
Expand Down

0 comments on commit e6b0f2b

Please sign in to comment.