Comparing version 0.3.7 to 0.3.8
{ | ||
"name": "esmock", | ||
"version": "0.3.7", | ||
"version": "0.3.8", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "readmeFilename": "README.md", |
@@ -25,5 +25,5 @@ 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' | ||
@@ -37,3 +37,3 @@ } | ||
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 : { | ||
@@ -53,2 +53,4 @@ readFileSync : () => { | ||
* 0.3.8 _Apr.21.2021_ | ||
* small change to README | ||
* 0.3.7 _Apr.20.2021_ | ||
@@ -55,0 +57,0 @@ * add test, throw error if mocked module path is not found |
14997
74