found/fixed some errors while testing agains WPT (#109)

* found/fixed some errors while testing agains WPT
* only run test.js with ava
This commit is contained in:
Jimmy Wärting
2021-07-31 11:24:15 +02:00
committed by GitHub
parent a08f394f1b
commit b86b1409de
6 changed files with 204 additions and 10 deletions
+4 -3
View File
@@ -15,9 +15,10 @@
],
"scripts": {
"lint": "xo test.js",
"test": "npm run lint && ava",
"report": "c8 --reporter json --reporter text ava",
"coverage": "c8 --reporter json --reporter text ava && codecov -f coverage/coverage-final.json",
"test-wpt": "node --experimental-loader ./test/http-loader.js ./test/test-wpt-in-node.js",
"test": "npm run lint && ava test.js",
"report": "c8 --reporter json --reporter text ava test.js",
"coverage": "c8 --reporter json --reporter text ava test.js && codecov -f coverage/coverage-final.json",
"prepublishOnly": "tsc --declaration --emitDeclarationOnly --allowJs index.js from.js"
},
"repository": "https://github.com/node-fetch/fetch-blob.git",