Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jest-mock-promise

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-mock-promise - npm Package Compare versions

Comparing version 1.0.1 to 1.0.3

.awcache/09c690ebd7cab40f3de55324f956db85c197a01ee6ed0aaefb991c5d3ce563485e1ccfb49a7a3ca8bc93cb100b48c2a1a52fc4c35d5e43ffe4a63fdf2b5bbba3.json.gzip

10

package.json
{
"name": "jest-mock-promise",
"version": "1.0.1",
"version": "1.0.3",
"description": "Synchronous Promise Mock for testing with Jest",
"main": "src/index.ts",
"main": "dist/jest-mock-promise.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "webpack -p"
},

@@ -13,2 +13,4 @@ "author": "knee-cola <nikola.derezic@gmail.com>",

"awesome-typescript-loader": "^3.4.0",
"babel-core": "^6.26.0",
"babel-preset-es2015": "^6.24.1",
"typescript": "^2.6.1",

@@ -21,2 +23,2 @@ "webpack": "^3.8.1"

}
}
}

1

tsconfig.json

@@ -5,5 +5,4 @@ {

"module": "ES6",
"jsx": "react",
"target": "ES6"
}
}

@@ -8,9 +8,9 @@ const path = require('path');

entry: {
"app": srcDir+"index.ts",
"jest-mock-promise": srcDir+"jest-mock-promise.ts",
},
output: {
path: path.resolve(__dirname + '/' + destDir),
filename: 'index.js',
library: 'JestMockPromise',
libraryTarget: 'umd'
filename: '[name].js',
// library: 'JestMockPromise',
// libraryTarget: 'umd'
},

@@ -27,5 +27,8 @@

{
test: /\.ts$/,
loader: "awesome-typescript-loader",
exclude: /node_modules/,
test: /\.ts$/,
loader: "awesome-typescript-loader",
exclude: /node_modules/,
options: {
useBabel: true
}
},

@@ -32,0 +35,0 @@ ]

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