We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e2e802 commit c74467fCopy full SHA for c74467f
test/parallel/test-cli-syntax.js
@@ -13,7 +13,9 @@ const syntaxArgs = [
13
['--check']
14
];
15
16
-const syntaxErrorRE = /^SyntaxError: Unexpected identifier$/m;
+// Match on the name of the `Error` but not the message as it is different
17
+// depending on the JavaScript engine.
18
+const syntaxErrorRE = /^SyntaxError: \b/m;
19
const notFoundRE = /^Error: Cannot find module/m;
20
21
// test good syntax with and without shebang
0 commit comments