Skip to content

Commit

Permalink
fix: make fetch behave when testing.
Browse files Browse the repository at this point in the history
When testing the nock package does not know how to behave with the native fetch, so we use 'node-fetch' to make fetch testable with nock. More info: nock/nock#2397 (comment)
  • Loading branch information
KeesCBakker committed Aug 7, 2023
1 parent 4d5bb06 commit 29483cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"main": "index.js",
"scripts": {
"release": "release-it",
"test": "mocha \"test/**/*.js\" --reporter spec",
"test": "mocha \"test/**/*.js\" --reporter spec --no-experiemental-fetch",
"prepare": "husky install",
"lint": "eslint src/ test/"
}
Expand Down

0 comments on commit 29483cf

Please sign in to comment.