From 900ea51e49e426bc9a29e94b6c6ac1eecc19cd83 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Mon, 5 Jun 2023 21:16:45 +0100 Subject: [PATCH 1/2] chore(package): remove global jest mock config values --- package.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/package.json b/package.json index 1bff518..d09496c 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,6 @@ ] }, "jest": { - "clearMocks": true, "collectCoverageFrom": [ "src/**/*.js" ], @@ -49,7 +48,6 @@ "text", "lcovonly" ], - "resetMocks": true, "testEnvironment": "node", "testTimeout": 10000 }, From f400b7b7570495a3cca20e7634336af81077bb39 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Mon, 5 Jun 2023 21:39:03 +0100 Subject: [PATCH 2/2] chore: import fastify type for server jsdoc param --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 770931a..022308e 100644 --- a/src/index.js +++ b/src/index.js @@ -9,7 +9,7 @@ const secJSON = require("secure-json-parse"); * responses into XML if the `Accept` HTTP request header only includes * 'application/xml' or if it explicitly includes the 'application/xml' * media type before 'application/json'. - * @param {object} server - Fastify instance. + * @param {import("fastify").FastifyInstance} server - Fastify instance. * @param {object=} options - Plugin config values. * @param {boolean=} options.replaceInvalidChars - Replace invalid XML characters with the Unicode * replacement character, U+FFFD. Will throw error if invalid characters found when enabled.