Fixed #1 - Fixed the whatsnew-** script for loading release notes into builds
Added test to ensure that release notes are parsed properly Updated to latest dependencies to fix security vulnerability Updated GH Actions Workflow to run test before updating tag Updated README.md to reflect proper whatsnew documentation.
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