Skip to content

Commit

Permalink
Allow test to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
giovannic committed Apr 22, 2020
1 parent 6f4f9fe commit 3df6ee5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions e2e/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,12 @@ async function test() {
}
}
}
process.exit(failed);
return failed;
}

test();
test()
.then(failed => { process.exit(failed) })
.catch(e => {
console.log(e);
process.exit(1)
});

0 comments on commit 3df6ee5

Please sign in to comment.