jest-webpack-alias
Advanced tools
Comparing version 3.2.2 to 3.3.0
@@ -65,3 +65,4 @@ var _ = require('lodash'); | ||
dirname: dirname, | ||
rest: alias.slice(dirname.length + 1) | ||
rest: alias.slice(dirname.length + 1), | ||
path: alias | ||
}; | ||
@@ -133,4 +134,9 @@ } else { | ||
if (alias) { | ||
dirname = alias.dirname; | ||
rest = alias.rest || rest; | ||
// We want to get something relative to the alias | ||
if (rest) { | ||
dirname = alias.path; | ||
} else { | ||
dirname = alias.dirname; | ||
rest = alias.rest; | ||
} | ||
dependency = dirname + (rest ? '/' + rest : ''); | ||
@@ -137,0 +143,0 @@ } |
{ | ||
"name": "jest-webpack-alias", | ||
"version": "3.2.2", | ||
"version": "3.3.0", | ||
"description": "Preprocessor for Jest that is able to resolve require() statements using webpack aliases.", | ||
@@ -5,0 +5,0 @@ "main": "lib/preprocessor.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9720
219