From 1decc809586b7809d34daab9fb6b12b9abfab0ab Mon Sep 17 00:00:00 2001 From: uzlopak Date: Sun, 7 Apr 2024 03:56:23 +0200 Subject: [PATCH] test: activate testing for interceptors and cache --- package.json | 12 ++++++++---- test/utils/formdata.js | 2 ++ test/utils/node-http.js | 2 ++ 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 751c3c48f39..4b4ca5cd5a7 100644 --- a/package.json +++ b/package.json @@ -68,20 +68,24 @@ "lint": "standard | snazzy", "lint:fix": "standard --fix | snazzy", "test": "npm run test:javascript && cross-env NODE_V8_COVERAGE= npm run test:typescript", - "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", - "test:javascript:withoutintl": "node scripts/generate-pem && npm run test:unit && npm run test:node-fetch && npm run test:fetch:nobuild && npm run test:cookies && npm run test:eventsource:nobuild && npm run test:wpt:withoutintl && npm run test:node-test", + "test:javascript": "node scripts/generate-pem && npm run test:unit && npm run test:node-fetch && npm run test:cache && npm run test:interceptors && 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", + "test:javascript:withoutintl": "node scripts/generate-pem && npm run test:unit && npm run test:node-fetch && npm run test:fetch:nobuild && npm run test:cache && npm run test:interceptors && run test:cookies && npm run test:eventsource:nobuild && npm run test:wpt:withoutintl && npm run test:node-test", + "test:busboy": "borp -p \"test/busboy/*.js\"", + "test:cache": "borp -p \"test/cache/*.js\"", "test:cookies": "borp -p \"test/cookie/*.js\"", - "test:node-fetch": "borp -p \"test/node-fetch/**/*.js\"", "test:eventsource": "npm run build:node && npm run test:eventsource:nobuild", "test:eventsource:nobuild": "borp --expose-gc -p \"test/eventsource/*.js\"", "test:fetch": "npm run build:node && npm run test:fetch:nobuild", - "test:fetch:nobuild": "borp --expose-gc -p \"test/fetch/*.js\" && borp -p \"test/webidl/*.js\" && borp -p \"test/busboy/*.js\"", + "test:fetch:nobuild": "borp --expose-gc -p \"test/fetch/*.js\" && npm run test:webidl && npm run test:busboy", + "test:interceptors": "borp -p \"test/interceptors/*.js\"", "test:jest": "cross-env NODE_V8_COVERAGE= jest", "test:unit": "borp --expose-gc -p \"test/*.js\"", + "test:node-fetch": "borp -p \"test/node-fetch/**/*.js\"", "test:node-test": "borp -p \"test/node-test/**/*.js\"", "test:tdd": "borp --expose-gc -p \"test/*.js\"", "test:tdd:node-test": "borp -p \"test/node-test/**/*.js\" -w", "test:typescript": "tsd && tsc --skipLibCheck test/imports/undici-import.ts", + "test:webidl": "borp -p \"test/webidl/*.js\"", "test:websocket": "borp -p \"test/websocket/*.js\"", "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", "test:wpt:withoutintl": "node test/wpt/start-fetch.mjs && node test/wpt/start-mimesniff.mjs && node test/wpt/start-xhr.mjs && node test/wpt/start-cacheStorage.mjs && node test/wpt/start-eventsource.mjs", diff --git a/test/utils/formdata.js b/test/utils/formdata.js index edd88545d15..b9a66719609 100644 --- a/test/utils/formdata.js +++ b/test/utils/formdata.js @@ -1,3 +1,5 @@ +'use strict' + const Busboy = require('@fastify/busboy') function parseFormDataString ( diff --git a/test/utils/node-http.js b/test/utils/node-http.js index 61e4b546e84..c1d743a8a37 100644 --- a/test/utils/node-http.js +++ b/test/utils/node-http.js @@ -1,3 +1,5 @@ +'use strict' + const util = require('node:util') function closeServerAsPromise (server) {