New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

jest-sourcemaps

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-sourcemaps

Use sourcemaps with jest

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

jest-sourcemaps

Use Jest with sourcemaps

This package contains a few utilities to add source map support to jest. To use it you must:

  • install: npm install jest-sourcemaps
  • override the test Environment: Add "testEnvironment": "jest-sourcemaps/lib/jsdom-env" or "testEnvironment": "jest-sourcemaps/lib/node-env" to your jest config in your package.json.
  • replace babel-jest: Use the transformer here instead by adding "\\.jsx?$": "jest-sourcemaps/lib/transformer.js" to your jest.transform config.
  • add the source-map-support hook by either setting "setupTestFrameworkScriptFile": "jest-sourcemaps/lib/testEnvSetup.js" in your jest config, or by requiring the module from your existing setup file

Keywords

jest

FAQs

Package last updated on 20 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts