You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { test } from 'uvu'
test.before(() => {
throw Error()
})
test('foo', () => {
})
test.run()
although the console output correctly shows that 0 tests passed, the process exits with false-positive exit code 0 and prints no error
besides hooks, also internal errors may cause this, e.g. a function for error formatting fails, when a string is passed as an error (throw 'error string')
The text was updated successfully, but these errors were encountered:
matej21
added a commit
to matej21/uvu
that referenced
this issue
Nov 4, 2020
the finally block in runner function silents every error which is thrown outside the inner
try
block.Example:
although the console output correctly shows that 0 tests passed, the process exits with false-positive exit code 0 and prints no error
besides hooks, also internal errors may cause this, e.g. a function for error formatting fails, when a string is passed as an error (
throw 'error string'
)The text was updated successfully, but these errors were encountered: