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

jest-util

Package Overview
Dependencies
Maintainers
5
Versions
261
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-util - npm Package Compare versions

Comparing version 13.2.2 to 13.3.0-alpha.4eb0c908

10

build/formatFailureMessage.js

@@ -18,7 +18,8 @@ /**

const ERROR_TITLE_COLOR = chalk.bold.underline.red;
const ERROR_TITLE_COLOR = chalk.bold.red;
// filter for noisy stack trace lines
const JASMINE_IGNORE = /^\s+at.*?vendor\/|\\jasmine\-/;
const JASMINE_IGNORE =
/^\s+at(?:(?:.*?vendor\/|jasmine\-)|\s+jasmine\.buildExpectationResult)/;
const STACK_TRACE_IGNORE =
/^\s+at.*?jest(-cli)?\/(vendor|src|node_modules|packages)\//;
/^\s+at.*?jest(-.*?)?(\/|\\)(vendor|build|node_modules|packages)(\/|\\)/;

@@ -48,6 +49,7 @@ const formatStackTrace = (stackTrace, config) => {

// even if it comes from Jest.
stackTraceLines++;
if (
config.noStackTrace ||
JASMINE_IGNORE.test(line) ||
STACK_TRACE_IGNORE.test(line) && ++stackTraceLines > 1)
STACK_TRACE_IGNORE.test(line) && stackTraceLines > 1)
{

@@ -54,0 +56,0 @@ return null;}

4

build/JasmineFormatter.js

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

addDiffableMatcher(matcherName) {
this._diffableMatchers[matcherName] = true;}
formatDiffable(

@@ -48,0 +44,0 @@ matcherName,

{
"name": "jest-util",
"version": "13.2.2",
"version": "13.3.0-alpha.4eb0c908",
"repository": {

@@ -15,3 +15,3 @@ "type": "git",

"mkdirp": "^0.5.1",
"jest-mock": "^13.2.2"
"jest-mock": "^13.3.0-alpha.4eb0c908"
},

@@ -22,3 +22,4 @@ "devDependencies": {

"jest": {
"rootDir": "./build",
"rootDir": "./src",
"scriptPreprocessor": "../../babel-jest",
"testEnvironment": "node"

@@ -25,0 +26,0 @@ },

Sorry, the diff of this file is not supported yet

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