File tree 1 file changed +8
-3
lines changed
Plugins/PackageToJS/Templates/bin
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,12 @@ const harnesses = {
42
42
let options = await nodePlatform . defaultNodeSetup ( {
43
43
args : testFrameworkArgs ,
44
44
onExit : ( code ) => {
45
- if ( code !== 0 ) { return }
45
+ if ( code !== 0 ) {
46
+ const stack = new Error ( ) . stack
47
+ console . error ( `Test failed with exit code ${ code } ` )
48
+ console . error ( stack )
49
+ return
50
+ }
46
51
// Extract the coverage file from the wasm module
47
52
const filePath = "default.profraw"
48
53
const destinationPath = args . values [ "coverage-file" ] ?? filePath
@@ -52,9 +57,9 @@ const harnesses = {
52
57
writeFileSync ( destinationPath , profraw ) ;
53
58
}
54
59
} ,
55
- /* #if USE_SHARED_MEMORY */
60
+ /* #if USE_SHARED_MEMORY */
56
61
spawnWorker : nodePlatform . createDefaultWorkerFactory ( preludeScript )
57
- /* #endif */
62
+ /* #endif */
58
63
} )
59
64
if ( preludeScript ) {
60
65
const prelude = await import ( preludeScript )
You can’t perform that action at this time.
0 commit comments