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

create-jest-runner

Package Overview
Dependencies
Maintainers
8
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-jest-runner - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

types/index.d.ts

16

build/createJestRunner.js

@@ -91,11 +91,9 @@ "use strict";

const onError = (err, test) => {
return onFailure(test, err).then(() => {
if (err.type === 'ProcessTerminatedError') {
// eslint-disable-next-line no-console
console.error('A worker process has quit unexpectedly! ' + 'Most likely this is an initialization error.');
process.exit(1);
}
});
};
const onError = (err, test) => onFailure(test, err).then(() => {
if (err.type === 'ProcessTerminatedError') {
// eslint-disable-next-line no-console
console.error('A worker process has quit unexpectedly! ' + 'Most likely this is an initialization error.');
process.exit(1);
}
});

@@ -102,0 +100,0 @@ const onInterrupt = new Promise((_, reject) => {

@@ -12,3 +12,3 @@ "use strict";

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }

@@ -15,0 +15,0 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

@@ -12,3 +12,3 @@ "use strict";

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }

@@ -15,0 +15,0 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

@@ -12,3 +12,3 @@ "use strict";

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }

@@ -15,0 +15,0 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

@@ -12,3 +12,3 @@ "use strict";

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }

@@ -15,0 +15,0 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

@@ -14,41 +14,37 @@ "use strict";

jestTestPath
}) => {
return {
console: null,
failureMessage: errorMessage,
numFailingTests: stats.failures,
numPassingTests: stats.passes,
numPendingTests: stats.pending,
numTodoTests: stats.todo,
perfStats: {
end: new Date(stats.end).getTime(),
start: new Date(stats.start).getTime()
},
skipped,
snapshot: {
added: 0,
fileDeleted: false,
matched: 0,
unchecked: 0,
unmatched: 0,
updated: 0
},
sourceMaps: {},
testExecError: null,
testFilePath: jestTestPath,
testResults: tests.map(test => {
return {
ancestorTitles: [],
duration: test.duration,
failureMessages: [test.errorMessage],
fullName: test.testPath,
numPassingAsserts: test.errorMessage ? 1 : 0,
status: test.errorMessage ? 'failed' : 'passed',
title: test.title || ''
};
})
};
};
}) => ({
console: null,
failureMessage: errorMessage,
numFailingTests: stats.failures,
numPassingTests: stats.passes,
numPendingTests: stats.pending,
numTodoTests: stats.todo,
perfStats: {
end: new Date(stats.end).getTime(),
start: new Date(stats.start).getTime()
},
skipped,
snapshot: {
added: 0,
fileDeleted: false,
matched: 0,
unchecked: 0,
unmatched: 0,
updated: 0
},
sourceMaps: {},
testExecError: null,
testFilePath: jestTestPath,
testResults: tests.map(test => ({
ancestorTitles: [],
duration: test.duration,
failureMessages: test.errorMessage ? [test.errorMessage] : [],
fullName: test.testPath,
numPassingAsserts: test.errorMessage ? 1 : 0,
status: test.errorMessage ? 'failed' : 'passed',
title: test.title || ''
}))
});
var _default = toTestResult;
exports.default = _default;

@@ -1,3 +0,7 @@

## master
## main
## 0.7.1
- Ship type definitions
## 0.7.0

@@ -4,0 +8,0 @@

{
"name": "create-jest-runner",
"version": "0.7.0",
"version": "0.7.1",
"main": "build/index.js",
"types": "types/index.d.ts",
"author": "Rogelio Guzman <rogelioguzmanh@gmail.com>",
"contributors": [
{
"name": "Lok Shun Hung",
"url": "https://github.com/lokshunhung"
}
],
"description": "A simple way of creating a Jest runner",

@@ -12,6 +19,7 @@ "license": "MIT",

"build/",
"generator/"
"generator/",
"types/"
],
"scripts": {
"test": "jest",
"test": "jest --no-color",
"lint": "eslint .",

@@ -28,3 +36,3 @@ "prettier:run": "prettier '*.md' '.github/**' '*.json' '**/package.json' '.vscode/*.json' 'generator/fixtures/*'",

"jest-worker": "^26.3.0",
"throat": "^5.0.0"
"throat": "^6.0.1"
},

@@ -35,13 +43,16 @@ "devDependencies": {

"@babel/preset-env": "^7.0.0",
"@typescript-eslint/eslint-plugin": "^4.6.0",
"@typescript-eslint/parser": "^4.6.0",
"babel-jest": "^26.3.0",
"eslint": "^7.7.0",
"eslint-config-airbnb-base": "^14.1.0",
"eslint-config-prettier": "^6.10.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jest": "^23.8.2",
"eslint-plugin-jest": "^24.1.0",
"eslint-plugin-prettier": "^3.0.1",
"execa": "^4.0.3",
"execa": "^5.0.0",
"jest": "^26.4.1",
"prettier": "^2.0.5",
"strip-ansi": "^6.0.0"
"strip-ansi": "^6.0.0",
"typescript": "^4.0.5"
},

@@ -54,2 +65,2 @@ "bin": "./generator/index.js",

}
}
}
# create-jest-runner
[![Build Status](https://travis-ci.org/jest-community/create-jest-runner.svg?branch=master)](https://travis-ci.org/jest-community/create-jest-runner)
[![Actions Status](https://github.com/jest-community/create-jest-runner/actions/workflows/nodejs.yml/badge.svg?branch=main)](https://github.com/jest-community/create-jest-runner/actions)

@@ -5,0 +5,0 @@ A highly opinionated way for creating Jest Runners

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