Skip to content

Commit

Permalink
Fix axios dependency with jest #41
Browse files Browse the repository at this point in the history
  • Loading branch information
infojunkie committed Nov 16, 2023
1 parent bedc6a0 commit fd9c32c
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 89 deletions.
140 changes: 54 additions & 86 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "musicxml-midi",
"version": "2.2.0",
"version": "2.2.1",
"description": "MusicXML to MIDI converter",
"type": "module",
"directories": {
Expand Down Expand Up @@ -52,7 +52,7 @@
"express-fileupload": "^1.3.1",
"morgan": "^1.10.0",
"node-fetch": "^3.3.1",
"saxon-js": "2.5.0",
"saxon-js": "^2.5.0",
"unzipit": "^1.4.0",
"validate-with-xmllint": "^1.2.0",
"xml-formatter": "^3.6.0",
Expand All @@ -73,6 +73,9 @@
"transform": {},
"coveragePathIgnorePatterns": [
"/node_modules/"
]
],
"moduleNameMapper": {
"^axios$": "<rootDir>/test/axios.cjs"
}
}
}
1 change: 1 addition & 0 deletions test/axios.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../node_modules/axios/dist/node/axios.cjs')

0 comments on commit fd9c32c

Please sign in to comment.