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

jest-webpack-alias

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-webpack-alias - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

21

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