From 84b61c9c583cf414cd3687042518bd2ddc04740d Mon Sep 17 00:00:00 2001 From: Nikita Skovoroda Date: Tue, 9 Jul 2024 14:10:11 +0300 Subject: [PATCH] fix comment --- src/jest.mock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jest.mock.js b/src/jest.mock.js index b056d84..bc3beca 100644 --- a/src/jest.mock.js +++ b/src/jest.mock.js @@ -108,7 +108,7 @@ export function jestmock(name, mocker) { // fall through when e.g. this module doesn't exist or is ESM if (Object.hasOwn(require.cache, resolved)) { assert.equal(mapActual.get(resolved), require.cache[resolved].exports) - // If we did't have this prior but have now, it means we just loaded it and there are not leaked instances + // If we did't have this prior but have now, it means we just loaded it and there are no leaked instances if (havePrior) override(resolved) require.cache[resolved].exports = value } else if (builtinModules.includes(resolved.replace(/^node:/, ''))) {