describe
should throw if passed a function that returns a promise
#5034
Labels
bug
Something isn't working
describe
is used to group related tests. Actual test code should be put in anit
block or abefore*
/after*
hook. For example, you can initializenode
in abeforeAll
hook:Deno.test
equivalentThe error message could definitely be improved. Jest throws a helpful error if the callback passed to
describe
returns a promise or anything other thanundefined
.Originally posted by @0f-0b in denoland/deno#22991 (comment)
The text was updated successfully, but these errors were encountered: