jest-webpack-alias
Advanced tools
Comparing version 2.2.0 to 2.3.0
{ | ||
"name": "jest-webpack-alias", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "Preprocessor for Jest that is able to resolve require() statements using webpack aliases.", | ||
"main": "lib/preprocessor.js", | ||
"scripts": { | ||
"test": "mocha --reporter tap test" | ||
"test": "mocha --reporter tap test", | ||
"coverage": "mocha test --require blanket -R mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js" | ||
}, | ||
"config": { | ||
"blanket": { | ||
"pattern": [ | ||
"lib" | ||
], | ||
"data-cover-never": [ | ||
"node_modules", | ||
"test" | ||
] | ||
} | ||
}, | ||
"repository": { | ||
@@ -25,8 +37,11 @@ "type": "git", | ||
"pkginfo": "^0.3.0", | ||
"transform-jest-deps": "^2.1.0", | ||
"transform-jest-deps": "^2.2.0", | ||
"unwin": "^1.0.1" | ||
}, | ||
"devDependencies": { | ||
"blanket": "^1.2.1", | ||
"chai": "^3.2.0", | ||
"coveralls": "^2.11.6", | ||
"mocha": "^2.3.0", | ||
"mocha-lcov-reporter": "^1.0.0", | ||
"rewire": "^2.3.4", | ||
@@ -33,0 +48,0 @@ "sinon": "^1.16.1", |
# jest-webpack-alias | ||
[![Build Status][travis-image]][travis-url] | ||
[![Coverage Status][coveralls-image]][coveralls-url] | ||
[![NPM][npm-image]][npm-url] | ||
Preprocessor for Jest that is able to resolve `require()` statements using webpack aliases. | ||
@@ -19,2 +23,3 @@ | ||
var babelJest = require('babel-jest'); | ||
require('babel-register'); // support ES6 'import' statements | ||
var webpackAlias = require('jest-webpack-alias'); | ||
@@ -48,4 +53,6 @@ | ||
## Manual package resolution | ||
## Common problems | ||
### Manual package resolution | ||
Code like this will not work, because an AST parser is not smart enough to evaluate variables into strings. | ||
@@ -83,1 +90,10 @@ | ||
MIT | ||
[travis-image]: https://travis-ci.org/Ticketmaster/jest-webpack-alias.svg?branch=master | ||
[travis-url]: https://travis-ci.org/Ticketmaster/jest-webpack-alias | ||
[coveralls-image]: https://coveralls.io/repos/github/Ticketmaster/jest-webpack-alias/badge.svg?branch=master | ||
[coveralls-url]: https://coveralls.io/github/Ticketmaster/jest-webpack-alias?branch=master | ||
[npm-image]: https://img.shields.io/npm/v/jest-webpack-alias.svg?style=flat | ||
[npm-url]: https://www.npmjs.com/package/jest-webpack-alias |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
97
3
11299
8
9
190
1
Updatedtransform-jest-deps@^2.2.0