diff --git a/tests/tests-node/esmock.node.test.js b/tests/tests-node/esmock.node.test.js index 1d0f5fb..c26dfd0 100644 --- a/tests/tests-node/esmock.node.test.js +++ b/tests/tests-node/esmock.node.test.js @@ -6,10 +6,12 @@ import sinon from 'sinon' import esmockCache from '../../src/esmockCache.js' // https://github.com/iambumblehead/esmock/issues/312 -test('should mock changelog-parser', {skip: true}, async () => { +test('should mock changelog-parser', {skip: false}, async () => { const parseChangelog = await esmock( '../local/importsChangelogParser.js', {}, { 'node:fs': { + open: test.mock.fn(), + close: test.mock.fn(), read: test.mock.fn(() => 'content') } }) diff --git a/tests/tests-node/package.json b/tests/tests-node/package.json index 5bf8edd..4906a3b 100644 --- a/tests/tests-node/package.json +++ b/tests/tests-node/package.json @@ -10,6 +10,7 @@ "sinon": "file:../node_modules/sinon", "eslint": "file:../node_modules/eslint", "form-urlencoded": "file:../node_modules/form-urlencoded", + "changelog-parser": "file:../node_modules/changelog-parser", "babelGeneratedDoubleDefault": "file:../local/babelGeneratedDoubleDefault" }, "scripts": {