File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed
@tunnckocore/jest-runner-babel/src Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ export default async function jetRunnerBabel({ testPath, config }) {
2424
2525 const babelConfig = { ...cfg } ;
2626
27- // sasa;
2827 try {
2928 result = transformFileSync ( testPath , babelConfig ) ;
3029 } catch ( err ) {
@@ -93,16 +92,18 @@ export default async function jetRunnerBabel({ testPath, config }) {
9392 fs . mkdirSync ( outDir , { recursive : true } ) ;
9493 fs . writeFileSync ( outFile , result . code ) ;
9594
95+ const passing = pass ( {
96+ start,
97+ end : new Date ( ) ,
98+ test : { path : outFile , title : 'Babel' } ,
99+ } ) ;
100+
96101 if ( result . map || babelConfig . sourceMaps === true ) {
97102 const mapFile = `${ outFile } .map` ;
98103 fs . writeFileSync ( mapFile , JSON . stringify ( result . map ) ) ;
99104
100105 return acc . concat (
101- pass ( {
102- start,
103- end : new Date ( ) ,
104- test : { path : outFile , title : 'Babel' } ,
105- } ) ,
106+ passing ,
106107 pass ( {
107108 start,
108109 end : new Date ( ) ,
@@ -111,13 +112,7 @@ export default async function jetRunnerBabel({ testPath, config }) {
111112 ) ;
112113 }
113114
114- return acc . concat (
115- pass ( {
116- start,
117- end : new Date ( ) ,
118- test : { path : outFile , title : 'Babel' } ,
119- } ) ,
120- ) ;
115+ return acc . concat ( passing ) ;
121116 } , [ ] ) ,
122117 ) ;
123118
You can’t perform that action at this time.
0 commit comments