Skip to content

Commit

Permalink
Revert "Use ESM for running tests"
Browse files Browse the repository at this point in the history
This reverts commit 86371e0.
  • Loading branch information
kingjan1999 committed Apr 14, 2022
1 parent 0e9dcc2 commit 99bc240
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 13 additions & 13 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
export default {
"name": "mock-axios",
"verbose": true,
"testRegex": "/test/.*\\.spec\\.(ts|tsx|js)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"transform": {
"\\.(ts|tsx)$": "ts-jest"
}
};
module.exports = {
"name": "mock-axios",
"verbose": true,
"testRegex": "/test/.*\\.spec\\.(ts|tsx|js)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"transform": {
"\\.(ts|tsx)$": "ts-jest"
}
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"type-check:watch": "npm run type-check -- --watch",
"build": "tsup lib/index.ts --format cjs,esm --dts --clean",
"deploy2npm": "npm run build && npm publish",
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --watch"
"test": "jest --watch"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 99bc240

Please sign in to comment.