Skip to content

Commit e6b0f2b

Browse files
thymikeemdjastrzebski
authored andcommitted
fix jest config unable to discover babel due to rootDir change
1 parent 0a04137 commit e6b0f2b

File tree

3 files changed

+6
-21
lines changed

3 files changed

+6
-21
lines changed

babel.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
'@babel/preset-env',
77
{
88
targets: {
9-
node: '10',
9+
node: '14',
1010
},
1111
bugfixes: true,
1212
},

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@babel/cli": "^7.8.4",
3030
"@babel/core": "^7.9.0",
3131
"@babel/plugin-proposal-class-properties": "^7.8.3",
32-
"@babel/plugin-transform-flow-strip-types": "^7.16.0",
32+
"@babel/plugin-transform-flow-strip-types": "^7.18.0",
3333
"@babel/preset-env": "^7.9.6",
3434
"@babel/preset-flow": "^7.9.0",
3535
"@babel/preset-react": "^7.9.4",
@@ -82,10 +82,10 @@
8282
"prepare": "yarn build"
8383
},
8484
"jest": {
85-
"preset": "../jest-preset",
86-
"rootDir": "./src",
85+
"preset": "./jest-preset",
8786
"testPathIgnorePatterns": [
88-
"timerUtils"
87+
"timerUtils",
88+
"examples/"
8989
],
9090
"testTimeout": 60000,
9191
"transformIgnorePatterns": [

yarn.lock

+1-16
Original file line numberDiff line numberDiff line change
@@ -931,13 +931,6 @@
931931
dependencies:
932932
"@babel/helper-plugin-utils" "^7.10.4"
933933

934-
"@babel/plugin-syntax-flow@^7.16.0":
935-
version "7.16.0"
936-
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.16.0.tgz#07427021d093ed77019408221beaf0272bbcfaec"
937-
integrity sha512-dH91yCo0RyqfzWgoM5Ji9ir8fQ+uFbt9KHM3d2x4jZOuHS6wNA+CRmRUP/BWCsHG2bjc7A2Way6AvH1eQk0wig==
938-
dependencies:
939-
"@babel/helper-plugin-utils" "^7.14.5"
940-
941934
"@babel/plugin-syntax-flow@^7.16.7":
942935
version "7.16.7"
943936
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.16.7.tgz#202b147e5892b8452bbb0bb269c7ed2539ab8832"
@@ -1147,15 +1140,7 @@
11471140
"@babel/helper-plugin-utils" "^7.16.7"
11481141
"@babel/plugin-syntax-flow" "^7.16.7"
11491142

1150-
"@babel/plugin-transform-flow-strip-types@^7.16.0":
1151-
version "7.16.0"
1152-
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.16.0.tgz#edd968dc2041c1b69e451a262e948d6654a79dc2"
1153-
integrity sha512-vs/F5roOaO/+WxKfp9PkvLsAyj0G+Q0zbFimHm9X2KDgabN2XmNFoAafmeGEYspUlIF9+MvVmyek9UyHiqeG/w==
1154-
dependencies:
1155-
"@babel/helper-plugin-utils" "^7.14.5"
1156-
"@babel/plugin-syntax-flow" "^7.16.0"
1157-
1158-
"@babel/plugin-transform-flow-strip-types@^7.18.6":
1143+
"@babel/plugin-transform-flow-strip-types@^7.18.0", "@babel/plugin-transform-flow-strip-types@^7.18.6":
11591144
version "7.18.9"
11601145
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.18.9.tgz#5b4cc521426263b5ce08893a2db41097ceba35bf"
11611146
integrity sha512-+G6rp2zRuOAInY5wcggsx4+QVao1qPM0osC9fTUVlAV3zOrzTCnrMAFVnR6+a3T8wz1wFIH7KhYMcMB3u1n80A==

0 commit comments

Comments
 (0)