Skip to content

Commit 99fa5ec

Browse files
committed
fix tests
1 parent d424b6c commit 99fa5ec

File tree

4 files changed

+62
-11
lines changed

4 files changed

+62
-11
lines changed

babel.config.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"presets": ["@babel/preset-env", "@babel/preset-react"]
2+
"presets": ["@babel/preset-env", "@babel/preset-react"],
3+
"plugins": [
4+
["@babel/transform-runtime"]
5+
]
36
}

jest.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,12 @@ module.exports = {
175175
'^.+\\.css$': '<rootDir>/config/jest/cssTransform.js',
176176
'^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)': '<rootDir>/config/jest/fileTransform.js',
177177
'^.+\\.(js|jsx|ts|tsx)$': '<rootDir>/node_modules/babel-jest'
178-
}
178+
},
179179

180180
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
181-
// transformIgnorePatterns: [
182-
// "/node_modules/"
183-
// ],
181+
transformIgnorePatterns: [
182+
"<rootDir>/node_modules/points-on-path/src"
183+
],
184184

185185
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
186186
// unmockedModulePathPatterns: undefined,

package-lock.json

Lines changed: 52 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
},
4646
"devDependencies": {
4747
"@babel/eslint-parser": "^7.17.0",
48+
"@babel/plugin-transform-runtime": "^7.17.10",
4849
"@babel/preset-env": "^7.16.11",
4950
"@babel/preset-react": "^7.16.7",
5051
"@typescript-eslint/eslint-plugin": "^5.18.0",
@@ -73,10 +74,5 @@
7374
"not dead",
7475
"not ie <= 11",
7576
"not op_mini all"
76-
],
77-
"jest": {
78-
"transformIgnorePatterns": [
79-
"<rootDir>/node_modules/points-on-path/src"
80-
]
81-
}
77+
]
8278
}

0 commit comments

Comments
 (0)