diff --git a/docs/package.json b/docs/package.json index 30cb5dd848a..0ec46d7584a 100644 --- a/docs/package.json +++ b/docs/package.json @@ -4,7 +4,7 @@ "main": "typedoc.js", "scripts": { "build": "typedoc ../index.d.ts && ./add-redirects.sh", - "pretest": "tsc -p . && tsc test", + "pretest": "tsc -p . && tsc --types node test", "test": "node test" }, "license": "BSD-3-Clause", diff --git a/docs/tsconfig.json b/docs/tsconfig.json index 8bb0763d679..263508a814d 100644 --- a/docs/tsconfig.json +++ b/docs/tsconfig.json @@ -4,7 +4,8 @@ "moduleResolution": "node", "module": "commonjs", "baseUrl": ".", - "strict": true + "strict": true, + "types": ["node"] }, "files": [ "../index.d.ts" diff --git a/integration-tests/appsec/multer.spec.js b/integration-tests/appsec/multer.spec.js index 91b3e93d531..b87d7d268b0 100644 --- a/integration-tests/appsec/multer.spec.js +++ b/integration-tests/appsec/multer.spec.js @@ -10,6 +10,10 @@ const { spawnProc } = require('../helpers') +const { NODE_MAJOR } = require('../../version') + +const describe = NODE_MAJOR <= 16 ? globalThis.describe.skip : globalThis.describe + describe('multer', () => { let sandbox, cwd, startupTestFile, agent, proc, env