We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
describe
Is your feature request related to a problem? Please describe.
in vitest we can use async functions as a callback to describe(), which allows setting up group-related resource, e.g.:
async
describe()
describe('foo', async () => { const foo = await createFoo() afterAll(() => foo.destroy()) // ... tests ... })
however describe currently doesn't allow async functions to be passed
Describe the solution you'd like
support async describe callbacks
Describe alternatives you've considered
await
beforeAll
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is your feature request related to a problem? Please describe.
in vitest we can use
async
functions as a callback todescribe()
, which allows setting up group-related resource, e.g.:however
describe
currently doesn't allow async functions to be passedDescribe the solution you'd like
support async
describe
callbacksDescribe alternatives you've considered
await
s to top level - the downside is that group-related stuff stops being groupedbeforeAll
hook - the downside is that we have to use non-null assertions for typescript + increases boilerplateThe text was updated successfully, but these errors were encountered: