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

jest-config

Package Overview
Dependencies
Maintainers
3
Versions
307
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-config - npm Package Compare versions

Comparing version 13.3.0-alpha.g8b48d59 to 13.4.0-alpha.d2632006

2

build/defaults.js

@@ -42,2 +42,3 @@ /**

notify: false,
preset: null,
testEnvData: {},

@@ -50,5 +51,4 @@ testEnvironment: 'jest-environment-jsdom',

testRegex: '__tests__/.*\.js$',
testReporter: require.resolve('./reporters/IstanbulTestReporter'),
testURL: 'about:blank',
useStderr: false,
verbose: false };

@@ -89,5 +89,37 @@ /**

if (!config.hasOwnProperty('rootDir')) {
throw new Error('No rootDir config value found!');}
throw new Error(`Jest: 'rootDir' config value must be specified.`);}
if (config.preset) {
const presetPath = _replaceRootDirTags(config.rootDir, config.preset);
const presetModule = Resolver.findNodeModule(
path.join(presetPath, 'jest-preset.json'),
{
basedir: config.rootDir });
if (presetModule) {
const preset = require(presetModule);
if (config.setupFiles) {
config.setupFiles = preset.setupFiles.concat(config.setupFiles);}
if (config.modulePathIgnorePatterns) {
config.modulePathIgnorePatterns = preset.modulePathIgnorePatterns.
concat(config.modulePathIgnorePatterns);}
if (config.moduleNameMapper) {
config.moduleNameMapper = Object.assign(
{},
preset.moduleNameMapper,
config.moduleNameMapper);}
config = Object.assign({}, preset, config);} else
{
throw new Error(
`Jest: Preset '${ config.preset }' not found.`);}}
config.rootDir = path.normalize(config.rootDir);

@@ -135,4 +167,2 @@

if (config.testRunner === 'jasmine1') {
config.testRunner = require.resolve('jest-jasmine1');} else
if (!config.testRunner || config.testRunner === 'jasmine2') {

@@ -276,5 +306,5 @@ config.testRunner = require.resolve('jest-jasmine2');} else

case 'persistModuleRegistryBetweenSpecs':
case 'preset':
case 'replname':
case 'rootDir':
case 'updateSnapshot':
case 'testEnvData':

@@ -285,2 +315,3 @@ case 'testEnvironment':

case 'testURL':
case 'updateSnapshot':
case 'usesBabelJest':

@@ -295,3 +326,3 @@ case 'verbose':

`Error: Unknown config option "${ key }" with value ` +
`"${ config[key] }". This is either a typing error or another user ` +
`"${ config[key] }". This is either a typing error or a user ` +
`mistake and fixing it will remove this message.`);}

@@ -298,0 +329,0 @@

{
"name": "jest-config",
"version": "13.3.0-alpha.g8b48d59",
"version": "13.4.0-alpha.d2632006",
"repository": {

@@ -12,12 +12,10 @@ "type": "git",

"chalk": "^1.1.1",
"istanbul": "^0.4.2",
"jest-environment-jsdom": "^13.3.0-alpha.g8b48d59",
"jest-environment-node": "^13.3.0-alpha.g8b48d59",
"jest-jasmine1": "^13.3.0-alpha.g8b48d59",
"jest-jasmine2": "^13.3.0-alpha.g8b48d59",
"jest-mock": "^13.3.0-alpha.g8b48d59",
"jest-resolve": "^13.3.0-alpha.g8b48d59",
"jest-util": "^13.3.0-alpha.g8b48d59",
"json-stable-stringify": "^1.0.0",
"node-notifier": "^4.6.0"
"istanbul": "^0.4.4",
"jest-environment-jsdom": "^13.4.0-alpha.d2632006",
"jest-environment-node": "^13.4.0-alpha.d2632006",
"jest-jasmine2": "^13.4.0-alpha.d2632006",
"jest-mock": "^13.4.0-alpha.d2632006",
"jest-resolve": "^13.4.0-alpha.d2632006",
"jest-util": "^13.4.0-alpha.d2632006",
"json-stable-stringify": "^1.0.0"
},

@@ -24,0 +22,0 @@ "jest": {

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