mirror of
https://github.com/actions/labeler.git
synced 2025-12-19 08:38:15 +00:00
build
This commit is contained in:
9
node_modules/jest-jasmine2/build/reporter.js
generated
vendored
9
node_modules/jest-jasmine2/build/reporter.js
generated
vendored
@@ -130,14 +130,9 @@ class Jasmine2Reporter {
|
||||
_addMissingMessageToStack(stack, message) {
|
||||
// Some errors (e.g. Angular injection error) don't prepend error.message
|
||||
// to stack, instead the first line of the stack is just plain 'Error'
|
||||
const ERROR_REGEX = /^Error\s*\n/;
|
||||
const ERROR_REGEX = /^Error:?\s*\n/;
|
||||
|
||||
if (
|
||||
stack &&
|
||||
message &&
|
||||
ERROR_REGEX.test(stack) &&
|
||||
stack.indexOf(message) === -1
|
||||
) {
|
||||
if (stack && message && !stack.includes(message)) {
|
||||
return message + stack.replace(ERROR_REGEX, '\n');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user