report invalid input file as test failure (#1938)

fixes #1935
This commit is contained in:
Alex Lam S.L
2023-01-30 11:55:32 +02:00
committed by GitHub
parent 5c30983d5d
commit c11bb93552
2 changed files with 31 additions and 2 deletions

View File

@@ -567,6 +567,7 @@ pub const TestCommand = struct {
.Rejected => {
var result = promise.result(vm.global.vm());
vm.runErrorHandler(result, null);
reporter.summary.fail += 1;
return;
},
else => {},