File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 33const queue = [ ] ;
44let stack = [ ] ;
55let index = 0 ;
6- // let currentName;
7- // let prefix = '';
86
97async function process ( ) {
108 const id = index ++ ;
@@ -20,9 +18,7 @@ async function process() {
2018
2119const processors = {
2220 async describe ( name , fn , path ) {
23- // stack.push(Array.from({ length: stack.length + 1 }).join(' ') + name);
2421 stack . push ( name ) ;
25- // log('INFO', Array.from(path).fill(' ').join('') + name);
2622 log ( 'INFO' , name ) ;
2723 await fn ( ) ;
2824 stack . pop ( ) ;
@@ -42,18 +38,14 @@ const processors = {
4238 . then ( fn )
4339 . then ( ( ) => calls || done ( ) )
4440 . catch ( err => {
45- // setTimeout(process);
46- // throw new Error(`\t${err.stack || err.message}`);
4741 log ( 'ERROR' , `🚨 ${ name } ` ) ;
4842 log ( 'ERROR' , '\t' + String ( err . stack || err . message || err ) ) ;
49- // setTimeout(process);
5043 resolve ( ) ;
5144 } ) ;
5245 } ) ;
5346 for ( let i = 0 ; i < logBuffer . length ; i ++ ) log ( ...logBuffer [ i ] ) ;
5447 logBuffer = undefined ;
5548 stack = stackBefore ;
56- // process();
5749 }
5850} ;
5951
@@ -139,4 +131,4 @@ class Expect {
139131 log ( isOver !== negated ? 'SUCCESS' : 'ERROR' , ' ' + msg ) ;
140132 }
141133 }
142- }
134+ }
You can’t perform that action at this time.
0 commit comments