Skip to content

Commit

Permalink
vm/tests: print failing tests (#2367)
Browse files Browse the repository at this point in the history
  • Loading branch information
jochem-brouwer authored Oct 18, 2022
1 parent 2e8b1cf commit 8432656
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/vm/test/tester/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,11 @@ async function runTests() {
const failingTests: Record<string, string[] | undefined> = {}

;(t as any).on('result', (o: any) => {
if (typeof o.ok !== 'undefined' && o.ok !== null && (o.ok === '' || o.ok === 0)) {
if (
typeof o.ok !== 'undefined' &&
o.ok !== null &&
(o.ok === '' || o.ok === 0 || o.ok === false)
) {
if (failingTests[testIdentifier] !== undefined) {
;(failingTests[testIdentifier] as string[]).push(o.name)
} else {
Expand Down

0 comments on commit 8432656

Please sign in to comment.