Open farwayer opened 1 year ago
The problem is even more serious than I expected. All subsequent tests will be silently skipped. Even if the test itself worries about this problematic behavior, any third-party library that is used in the code can cause trouble and completely disable testing.
test('example', () => {
externalLibFail()
})
test('example2', () => {
throw new Error("It will never be called")
})
function externalLibFail() {
throw "not an Error"
}
I have opened a PR to fix this issue.
When are you going to merge it? I want this fix too. Thanks!
Just encountered this behavior after few years of using uvu
, this is very unexpected and very unpleasant :(
I've looked through other issues and found out, that author knew about this behavior since 2021, but did nothing (not even changed documentation) — https://github.com/lukeed/uvu/issues/130#issuecomment-896377702
Thanks for the nice lib! Just started using it and found a bug:
As result test fail will be silently ignored. The bug is here:
format
function expects that err is defined and isError
instance although this is not required.