File tree Expand file tree Collapse file tree 5 files changed +55
-4
lines changed Expand file tree Collapse file tree 5 files changed +55
-4
lines changed Original file line number Diff line number Diff line change @@ -220,6 +220,9 @@ export default class Reporter {
220220 this . lineNumberErrors . push ( event ) ;
221221
222222 this . write ( colors . information ( `${ figures . warning } Could not parse ${ this . relativeFile ( event . testFile ) } for line number selection` ) ) ;
223+ this . lineWriter . writeLine ( ) ;
224+ this . lineWriter . writeLine ( colors . errorStack ( event . err . stack ) ) ;
225+ this . lineWriter . writeLine ( ) ;
223226 break ;
224227 }
225228
Original file line number Diff line number Diff line change 11
22---tty-stream-chunk-separator
33 [35m⚠ Could not parse ast-syntax-error.cjs for line number selection[39m
4- ---tty-stream-chunk-separator
54
5+ [90mSyntaxError: Unexpected token (3:11)[39m
6+ [90m at Parser.pp$4.raise (~/node_modules/acorn/dist/acorn.js:3462:15)[39m
7+ [90m at Parser.pp$9.unexpected (~/node_modules/acorn/dist/acorn.js:756:10)[39m
8+ [90m at Parser.pp$5.parseExprAtom (~/node_modules/acorn/dist/acorn.js:2837:12)[39m
9+ [90m at Parser.pp$5.parseExprSubscripts (~/node_modules/acorn/dist/acorn.js:2629:21)[39m
10+ [90m at Parser.pp$5.parseMaybeUnary (~/node_modules/acorn/dist/acorn.js:2595:19)[39m
11+ [90m at Parser.pp$5.parseExprOps (~/node_modules/acorn/dist/acorn.js:2522:21)[39m
12+ [90m at Parser.pp$5.parseMaybeConditional (~/node_modules/acorn/dist/acorn.js:2505:21)[39m
13+ [90m at Parser.pp$5.parseMaybeAssign (~/node_modules/acorn/dist/acorn.js:2472:21)[39m
14+ [90m at Parser.pp$8.parseVar (~/node_modules/acorn/dist/acorn.js:1299:26)[39m
15+ [90m at Parser.pp$8.parseVarStatement (~/node_modules/acorn/dist/acorn.js:1163:10)[39m
16+
17+ ---tty-stream-chunk-separator
618 [1mUncaught exception in ast-syntax-error.cjs[22m
719
820 ~/test-tap/fixture/report/edgecases/ast-syntax-error.cjs:3
Original file line number Diff line number Diff line change 11
22---tty-stream-chunk-separator
33 [35m⚠ Could not parse ast-syntax-error.cjs for line number selection[39m
4- ---tty-stream-chunk-separator
54
5+ [90mSyntaxError: Unexpected token (3:11)[39m
6+ [90m at Parser.pp$4.raise (~/node_modules/acorn/dist/acorn.js:3462:15)[39m
7+ [90m at Parser.pp$9.unexpected (~/node_modules/acorn/dist/acorn.js:756:10)[39m
8+ [90m at Parser.pp$5.parseExprAtom (~/node_modules/acorn/dist/acorn.js:2837:12)[39m
9+ [90m at Parser.pp$5.parseExprSubscripts (~/node_modules/acorn/dist/acorn.js:2629:21)[39m
10+ [90m at Parser.pp$5.parseMaybeUnary (~/node_modules/acorn/dist/acorn.js:2595:19)[39m
11+ [90m at Parser.pp$5.parseExprOps (~/node_modules/acorn/dist/acorn.js:2522:21)[39m
12+ [90m at Parser.pp$5.parseMaybeConditional (~/node_modules/acorn/dist/acorn.js:2505:21)[39m
13+ [90m at Parser.pp$5.parseMaybeAssign (~/node_modules/acorn/dist/acorn.js:2472:21)[39m
14+ [90m at Parser.pp$8.parseVar (~/node_modules/acorn/dist/acorn.js:1299:26)[39m
15+ [90m at Parser.pp$8.parseVarStatement (~/node_modules/acorn/dist/acorn.js:1163:10)[39m
16+
17+ ---tty-stream-chunk-separator
618 [1mUncaught exception in ast-syntax-error.cjs[22m
719
820 SyntaxError: Unexpected token 'do'
Original file line number Diff line number Diff line change 11
22---tty-stream-chunk-separator
33 [35m⚠ Could not parse ast-syntax-error.cjs for line number selection[39m
4- ---tty-stream-chunk-separator
54
5+ [90mSyntaxError: Unexpected token (3:11)[39m
6+ [90m at Parser.pp$4.raise (~/node_modules/acorn/dist/acorn.js:3462:15)[39m
7+ [90m at Parser.pp$9.unexpected (~/node_modules/acorn/dist/acorn.js:756:10)[39m
8+ [90m at Parser.pp$5.parseExprAtom (~/node_modules/acorn/dist/acorn.js:2837:12)[39m
9+ [90m at Parser.pp$5.parseExprSubscripts (~/node_modules/acorn/dist/acorn.js:2629:21)[39m
10+ [90m at Parser.pp$5.parseMaybeUnary (~/node_modules/acorn/dist/acorn.js:2595:19)[39m
11+ [90m at Parser.pp$5.parseExprOps (~/node_modules/acorn/dist/acorn.js:2522:21)[39m
12+ [90m at Parser.pp$5.parseMaybeConditional (~/node_modules/acorn/dist/acorn.js:2505:21)[39m
13+ [90m at Parser.pp$5.parseMaybeAssign (~/node_modules/acorn/dist/acorn.js:2472:21)[39m
14+ [90m at Parser.pp$8.parseVar (~/node_modules/acorn/dist/acorn.js:1299:26)[39m
15+ [90m at Parser.pp$8.parseVarStatement (~/node_modules/acorn/dist/acorn.js:1163:10)[39m
16+
17+ ---tty-stream-chunk-separator
618 [1mUncaught exception in ast-syntax-error.cjs[22m
719
820 SyntaxError: Unexpected token 'do'
Original file line number Diff line number Diff line change 11
22---tty-stream-chunk-separator
33 [35m⚠ Could not parse ast-syntax-error.cjs for line number selection[39m
4- ---tty-stream-chunk-separator
54
5+ [90mSyntaxError: Unexpected token (3:11)[39m
6+ [90m at pp$4.raise (~/node_modules/acorn/dist/acorn.js:3462:15)[39m
7+ [90m at pp$9.unexpected (~/node_modules/acorn/dist/acorn.js:756:10)[39m
8+ [90m at pp$5.parseExprAtom (~/node_modules/acorn/dist/acorn.js:2837:12)[39m
9+ [90m at pp$5.parseExprSubscripts (~/node_modules/acorn/dist/acorn.js:2629:21)[39m
10+ [90m at pp$5.parseMaybeUnary (~/node_modules/acorn/dist/acorn.js:2595:19)[39m
11+ [90m at pp$5.parseExprOps (~/node_modules/acorn/dist/acorn.js:2522:21)[39m
12+ [90m at pp$5.parseMaybeConditional (~/node_modules/acorn/dist/acorn.js:2505:21)[39m
13+ [90m at pp$5.parseMaybeAssign (~/node_modules/acorn/dist/acorn.js:2472:21)[39m
14+ [90m at pp$8.parseVar (~/node_modules/acorn/dist/acorn.js:1299:26)[39m
15+ [90m at pp$8.parseVarStatement (~/node_modules/acorn/dist/acorn.js:1163:10)[39m
16+
17+ ---tty-stream-chunk-separator
618 [1mUncaught exception in ast-syntax-error.cjs[22m
719
820 SyntaxError: Unexpected token 'do'
You can’t perform that action at this time.
0 commit comments