Skip to content

Commit 199e74a

Browse files
committed
fix: resolve issues with Jest configuration
1 parent 62e7cf1 commit 199e74a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

jest.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
transformIgnorePatterns: [
1111
// https://stackoverflow.com/questions/55794280/jest-fails-with-unexpected-token-on-import-statement
1212
// avoid "Cannot use import statement outside a module" error for ky
13-
'node_modules/(?!(ky)/)',
13+
'node_modules/(?!(axios|ky)/)',
1414
],
1515
snapshotSerializers: [
1616
],

jest.init.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// import 'babel-polyfill'; // use es6
1+
import 'babel-polyfill'; // use es6
22

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "http-request-mock",
3-
"version": "1.8.24",
3+
"version": "1.8.25",
44
"description": "Intercept & mock http requests issued by XMLHttpRequest, fetch, nodejs https/http module, axios, jquery, superagent, ky, node-fetch, request, got or any other request libraries by intercepting XMLHttpRequest, fetch and nodejs native requests in low level.",
55
"main": "src/index.js",
66
"module": "http-request-mock.esm.mjs",

0 commit comments

Comments
 (0)