Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriangalliat committed May 25, 2022
1 parent 552fa97 commit 6cdd126
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ the browser.
npm ci

# Allows to test node-fetch v2 as well as node-fetch v3
npm --prefix test/node-fetch-2 ci
npm --prefix test/node_modules/node-fetch-2 ci

# Allows to test against Undici by removing the blacklisting of `Set-Cookie` headers
npm run patch-undici
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"scripts": {
"build": "esbuild src/*.ts --format=esm --outdir=esm && esbuild src/*.ts --format=cjs --outdir=cjs",
"lint": "ts-standard src/*.ts test/*.js",
"patch-undici": "sed -i 's/^const forbiddenResponseHeaderNames =.*$/const forbiddenResponseHeaderNames = []/' node_modules/undici/lib/fetch/constants.js",
"patch-undici": "sed -i.old 's/^const forbiddenResponseHeaderNames =.*$/const forbiddenResponseHeaderNames = []/' node_modules/undici/lib/fetch/constants.js",
"prepack": "npm run prepare && npm run lint && npm run type-check && npm test && npm run test-import",
"prepare": "npm run build && npm run type-declarations",
"test": "npm run build && mocha",
Expand Down
2 changes: 1 addition & 1 deletion test/node_modules/node-fetch-2/package-lock.json

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

0 comments on commit 6cdd126

Please sign in to comment.