|
67 | 67 | "build:wasm": "node build/wasm.js --docker",
|
68 | 68 | "lint": "standard | snazzy",
|
69 | 69 | "lint:fix": "standard --fix | snazzy",
|
70 |
| - "test": "node scripts/generate-pem && npm run test:unit && npm run test:node-fetch && npm run test:fetch && npm run test:cookies && npm run test:eventsource && npm run test:wpt && npm run test:websocket && npm run test:jest && npm run test:typescript && npm run test:node-test", |
71 |
| - "test:cookies": "borp --coverage -p \"test/cookie/*.js\"", |
72 |
| - "test:node-fetch": "borp --coverage -p \"test/node-fetch/**/*.js\"", |
73 |
| - "test:eventsource": "npm run build:node && borp --expose-gc --coverage -p \"test/eventsource/*.js\"", |
74 |
| - "test:fetch": "npm run build:node && borp --expose-gc --coverage -p \"test/fetch/*.js\" && borp --coverage -p \"test/webidl/*.js\"", |
75 |
| - "test:jest": "jest", |
| 70 | + "test": "npm run test:javascript && npm run test:typescript", |
| 71 | + "test:javascript": "node scripts/generate-pem && npm run test:unit && npm run test:node-fetch && npm run test:fetch && npm run test:cookies && npm run test:eventsource && npm run test:wpt && npm run test:websocket && npm run test:node-test && npm run test:jest", |
| 72 | + "test:cookies": "borp -p \"test/cookie/*.js\"", |
| 73 | + "test:node-fetch": "borp -p \"test/node-fetch/**/*.js\"", |
| 74 | + "test:eventsource": "npm run build:node && borp --expose-gc -p \"test/eventsource/*.js\"", |
| 75 | + "test:fetch": "npm run build:node && borp --expose-gc -p \"test/fetch/*.js\" && borp -p \"test/webidl/*.js\"", |
| 76 | + "test:jest": "cross-env NODE_V8_COVERAGE= jest", |
76 | 77 | "test:unit": "borp --expose-gc -p \"test/*.js\"",
|
77 |
| - "test:node-test": "borp --coverage -p \"test/node-test/**/*.js\"", |
78 |
| - "test:tdd": "borp --coverage --expose-gc -p \"test/*.js\"", |
| 78 | + "test:node-test": "borp -p \"test/node-test/**/*.js\"", |
| 79 | + "test:tdd": "borp --expose-gc -p \"test/*.js\"", |
79 | 80 | "test:tdd:node-test": "borp -p \"test/node-test/**/*.js\" -w",
|
80 |
| - "test:typescript": "tsd && tsc --skipLibCheck test/imports/undici-import.ts", |
81 |
| - "test:websocket": "borp --coverage -p \"test/websocket/*.js\"", |
| 81 | + "test:typescript": "cross-env NODE_V8_COVERAGE= tsd && tsc --skipLibCheck test/imports/undici-import.ts", |
| 82 | + "test:websocket": "borp -p \"test/websocket/*.js\"", |
82 | 83 | "test:wpt": "node test/wpt/start-fetch.mjs && node test/wpt/start-FileAPI.mjs && node test/wpt/start-mimesniff.mjs && node test/wpt/start-xhr.mjs && node test/wpt/start-websockets.mjs && node test/wpt/start-cacheStorage.mjs && node test/wpt/start-eventsource.mjs",
|
83 |
| - "coverage": "nyc --reporter=text --reporter=html npm run test", |
84 |
| - "coverage:ci": "nyc --reporter=lcov npm run test", |
| 84 | + "coverage": "cross-env NODE_V8_COVERAGE=./coverage/tmp && npm run coverage:clean && npm run test && npm run coverage:report", |
| 85 | + "coverage:ci": "npm run coverage:clean && npm run test && npm run coverage:report:ci", |
| 86 | + "coverage:clean": "node ./scripts/clean-coverage.js", |
| 87 | + "coverage:report": "cross-env NODE_V8_COVERAGE= c8 report", |
| 88 | + "coverage:report:ci": "c8 report", |
85 | 89 | "bench": "PORT=3042 concurrently -k -s first npm:bench:server npm:bench:run",
|
86 | 90 | "bench:server": "node benchmarks/server.js",
|
87 | 91 | "prebench:run": "node benchmarks/wait.js",
|
88 | 92 | "bench:run": "SAMPLES=100 CONNECTIONS=50 node benchmarks/benchmark.js",
|
89 | 93 | "serve:website": "docsify serve .",
|
90 |
| - "prepare": "husky install", |
| 94 | + "prepare": "husky install && node ./scripts/platform-shell.js", |
91 | 95 | "fuzz": "jsfuzz test/fuzzing/fuzz.js corpus"
|
92 | 96 | },
|
93 | 97 | "devDependencies": {
|
|
98 | 102 | "abort-controller": "^3.0.0",
|
99 | 103 | "axios": "^1.6.5",
|
100 | 104 | "borp": "^0.9.1",
|
| 105 | + "c8": "^9.1.0", |
101 | 106 | "concurrently": "^8.0.1",
|
102 | 107 | "cronometro": "^3.0.1",
|
| 108 | + "cross-env": "^7.0.3", |
103 | 109 | "dns-packet": "^5.4.0",
|
104 | 110 | "docsify-cli": "^4.4.3",
|
105 | 111 | "form-data": "^4.0.0",
|
|
0 commit comments