diff --git a/README.md b/README.md index 6899bb0d..e7a7e768 100644 --- a/README.md +++ b/README.md @@ -22,9 +22,9 @@ import test from 'ava'; import esmock from 'esmock'; test('should mock modules and local files at same time', async t => { - const main = await esmock('./local/main.js', { + const main = await esmock('../src/main.js', { stringifierpackage : o => JSON.stringify(o), - './local/util.js' : { + '../src/util.js' : { exportedFunction : () => 'foobar' } }); @@ -33,7 +33,7 @@ test('should mock modules and local files at same time', async t => { }); test('should do global instance mocks —third parameter', async t => { - const { getFile } = await esmock('./local/main.js', {}, { + const { getFile } = await esmock('../src/main.js', {}, { fs : { readFileSync : () => { return 'anywhere the instance uses fs readFileSync'; @@ -48,6 +48,8 @@ test('should do global instance mocks —third parameter', async t => { ### changelog + * 0.3.8 _Apr.21.2021_ + * small change to README * 0.3.7 _Apr.20.2021_ * add test, throw error if mocked module path is not found * 0.3.6 _Apr.19.2021_ diff --git a/package-lock.json b/package-lock.json index c9935161..b303ca42 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { "name": "esmock", - "version": "0.3.7", + "version": "0.3.8", "lockfileVersion": 2, "requires": true, "packages": { "": { - "version": "0.3.7", + "version": "0.3.8", "license": "MIT", "dependencies": { "resolvewithplus": "^0.2.0" diff --git a/package.json b/package.json index d2177403..ee57a32e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "esmock", - "version": "0.3.7", + "version": "0.3.8", "license": "MIT", "readmeFilename": "README.md", "description": "mock esm modules for unit-tests",