New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

esmock

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esmock - npm Package Compare versions

Comparing version 0.3.7 to 0.3.8

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc