File tree 1 file changed +5
-3
lines changed 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ var Runner = require('./lib/runner');
7
7
var log = new Squeak ( { separator : ' ' } ) ;
8
8
var runner = new Runner ( ) ;
9
9
10
+ Error . stackTraceLimit = Infinity ;
11
+
10
12
log . type ( 'success' , {
11
13
color : 'green' ,
12
14
prefix : figures . tick
@@ -38,7 +40,7 @@ function stack(results) {
38
40
39
41
// Don't print the full stack but the only useful line showing
40
42
// the actual test file stack
41
- var reg = / \( ( ?:[ \\ \/ ] (?: (? ! n o d e _ m o d u l e s [ \\ \/ ] a v a [ \\ \/ ] ) [ ^ : \\ \/ ] ) + ) + : \d + : \d + \) / ;
43
+ var reg = / (?: ^ (? ! { 4 } a t \b ) . { 6 } ) | (?: \( ( ?:[ \\ \/ ] (?: (? ! n o d e _ m o d u l e s [ \\ \/ ] a v a [ \\ \/ ] ) [ ^ : \\ \/ ] ) + ) + : \d + : \d + \) ) / ;
42
44
function beautifulStack ( stack ) {
43
45
var found = false ;
44
46
return stack . split ( '\n' ) . filter ( function ( line ) {
@@ -47,10 +49,10 @@ function stack(results) {
47
49
return ! found || relevant ;
48
50
} ) . join ( '\n' ) ;
49
51
}
50
- result . error . stack = beautifulStack ( result . error . stack ) ;
52
+ var stack = beautifulStack ( result . error . stack ) ;
51
53
52
54
log . writelpad ( chalk . red ( i + '.' , result . title ) ) ;
53
- log . writelpad ( chalk . red ( result . error . stack ) ) ;
55
+ log . writelpad ( chalk . red ( stack ) ) ;
54
56
log . write ( ) ;
55
57
} ) ;
56
58
}
You can’t perform that action at this time.
0 commit comments