🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

jest-runtime

Package Overview
Dependencies
Maintainers
1
Versions
319
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-runtime - npm Package Compare versions

Comparing version

to
12.1.3-alpha.6230044c

bin/jest-runtime.js

33

build/index.js

@@ -16,2 +16,5 @@ /**

const createHasteMap = require('jest-haste-map').create;
const createResolver = require('jest-resolve').create;
const fs = require('graceful-fs');

@@ -21,2 +24,3 @@ const moduleMocker = require('jest-mock');

const transform = require('./lib/transform');
const utils = require('jest-util');

@@ -32,2 +36,6 @@

const NODE_MODULES = path.sep + 'node_modules' + path.sep;

@@ -116,2 +124,27 @@

static buildHasteMap(
config,
options)
{
utils.createDirectory(config.cacheDirectory);
const instance = createHasteMap(config, {
resetCache: !config.cache,
maxWorkers: options.maxWorkers });
return instance.build().then(
moduleMap => ({
instance,
moduleMap,
resolver: createResolver(config, moduleMap) }),
error => {
throw error;});}
static runCLI(args, info) {
return require('./cli').run(args, info);}
requireModule(from, moduleName) {

@@ -118,0 +151,0 @@ const moduleID = this._getNormalizedModuleID(from, moduleName);

28

package.json
{
"name": "jest-runtime",
"version": "12.1.2-alpha.a482b15c",
"version": "12.1.3-alpha.6230044c",
"repository": {

@@ -12,19 +12,25 @@ "type": "git",

"graceful-fs": "^4.1.3",
"jest-environment-jsdom": "^12.1.2-alpha.a482b15c",
"jest-haste-map": "^12.1.2-alpha.a482b15c",
"jest-mock": "^12.1.2-alpha.a482b15c",
"jest-resolve": "^12.1.2-alpha.a482b15c",
"jest-snapshot": "^12.1.2-alpha.a482b15c",
"jest-util": "^12.1.2-alpha.a482b15c",
"json-stable-stringify": "^1.0.0"
"jest-config": "^12.1.3-alpha.6230044c",
"jest-environment-jsdom": "^12.1.3-alpha.6230044c",
"jest-haste-map": "^12.1.3-alpha.6230044c",
"jest-mock": "^12.1.3-alpha.6230044c",
"jest-resolve": "^12.1.3-alpha.6230044c",
"jest-snapshot": "^12.1.3-alpha.6230044c",
"jest-util": "^12.1.3-alpha.6230044c",
"json-stable-stringify": "^1.0.0",
"yargs": "^4.7.1"
},
"bin": {
"jest-runtime": "./bin/jest-runtime.js"
},
"devDependencies": {
"jest-config": "^12.1.2-alpha.a482b15c"
"jest-config": "^12.1.3-alpha.6230044c"
},
"jest": {
"automock": false,
"rootDir": "./build",
"testEnvironment": "jest-environment-node",
"testPathIgnorePatterns": [
"/__tests__/[^/]*/.+"
],
"testEnvironment": "jest-environment-node"
]
},

@@ -31,0 +37,0 @@ "scripts": {