File tree 5 files changed +55
-4
lines changed
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 {
220
220
this . lineNumberErrors . push ( event ) ;
221
221
222
222
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 ( ) ;
223
226
break ;
224
227
}
225
228
Original file line number Diff line number Diff line change 1
1
2
2
---tty-stream-chunk-separator
3
3
[35m⚠ Could not parse ast-syntax-error.cjs for line number selection[39m
4
- ---tty-stream-chunk-separator
5
4
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
6
18
[1mUncaught exception in ast-syntax-error.cjs[22m
7
19
8
20
~/test-tap/fixture/report/edgecases/ast-syntax-error.cjs:3
Original file line number Diff line number Diff line change 1
1
2
2
---tty-stream-chunk-separator
3
3
[35m⚠ Could not parse ast-syntax-error.cjs for line number selection[39m
4
- ---tty-stream-chunk-separator
5
4
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
6
18
[1mUncaught exception in ast-syntax-error.cjs[22m
7
19
8
20
SyntaxError: Unexpected token 'do'
Original file line number Diff line number Diff line change 1
1
2
2
---tty-stream-chunk-separator
3
3
[35m⚠ Could not parse ast-syntax-error.cjs for line number selection[39m
4
- ---tty-stream-chunk-separator
5
4
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
6
18
[1mUncaught exception in ast-syntax-error.cjs[22m
7
19
8
20
SyntaxError: Unexpected token 'do'
Original file line number Diff line number Diff line change 1
1
2
2
---tty-stream-chunk-separator
3
3
[35m⚠ Could not parse ast-syntax-error.cjs for line number selection[39m
4
- ---tty-stream-chunk-separator
5
4
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
6
18
[1mUncaught exception in ast-syntax-error.cjs[22m
7
19
8
20
SyntaxError: Unexpected token 'do'
You can’t perform that action at this time.
0 commit comments