make ErrorMatcher an object rather than a tuple
This commit is contained in:
parent
1fb7c81099
commit
b3b99014eb
12 changed files with 58 additions and 48 deletions
10
lib/error-matcher.js
generated
10
lib/error-matcher.js
generated
|
|
@ -5,12 +5,12 @@ exports.namedMatchersForTesting = {
|
|||
/*
|
||||
In due course it may be possible to remove the regex, if/when javascript also exits with code 32.
|
||||
*/
|
||||
noSourceCodeFound: [
|
||||
32,
|
||||
new RegExp("No JavaScript or TypeScript code found\\."),
|
||||
"No code found during the build. Please see:\n" +
|
||||
noSourceCodeFound: {
|
||||
exitCode: 32,
|
||||
outputRegex: new RegExp("No JavaScript or TypeScript code found\\."),
|
||||
message: "No code found during the build. Please see:\n" +
|
||||
"https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/troubleshooting-code-scanning#no-code-found-during-the-build"
|
||||
],
|
||||
},
|
||||
};
|
||||
// we collapse the matches into an array for use in execErrorCatcher
|
||||
exports.errorMatchers = Object.values(exports.namedMatchersForTesting);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue