Socket
Socket
Sign inDemoInstall

jest-pnp-resolver

Package Overview
Dependencies
58
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

4

index.js

@@ -11,4 +11,4 @@

if (pnp) {
module.exports = (request, {basedir}) => {
const resolution = pnp.resolveRequest(request, `${basedir}/`);
module.exports = (request, {basedir, extensions}) => {
const resolution = pnp.resolveRequest(request, `${basedir}/`, {extensions});

@@ -15,0 +15,0 @@ // When the request is a native module, Jest expects to get the string back unmodified, but pnp returns null instead.

{
"name":"jest-pnp-resolver",
"version":"1.0.1",
"name": "jest-pnp-resolver",
"version": "1.0.2",
"description": "plug'n'play resolver for Webpack",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -6,2 +6,4 @@ # <img src="https://github.com/facebook/jest/blob/master/website/static/img/jest.png" height="40" align="right" /> [Plug'n'Play](https://github.com/yarnpkg/rfcs/pull/101) resolver for Jest

*This plugin is also available for Rollup ([rollup-plugin-pnp-resolve](https://github.com/arcanis/rollup-plugin-pnp-resolve)), TypeScript ([ts-pnp](https://github.com/arcanis/ts-pnp)), and Webpack ([pnp-webpack-plugin](https://github.com/arcanis/pnp-webpack-plugin))*
## Installation

@@ -23,3 +25,3 @@

Note that `jest-resolve` is a peer dependency of `jest-pnp-resolver`, but is only ever used to fallback to the regular resolver when Jest is used on non-pnp environment.
Note that `jest-resolve` is a peer dependency of `jest-pnp-resolver`, but is only ever used to fallback to the regular resolver when Jest is used on non-pnp environments.

@@ -26,0 +28,0 @@ ## License (MIT)

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc