Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ChALkeR committed Jul 9, 2024
1 parent 83fee34 commit 84b61c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jest.mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:/, ''))) {
Expand Down

0 comments on commit 84b61c9

Please sign in to comment.