Support await and done syntax at the same time #1699
Unanswered
molszanski
asked this question in
Q&A
Replies: 2 comments 5 replies
-
https://vitest.dev/guide/migration.html#migrating-from-jest - it('should work', (done) => {
+ it('should work', () => new Promise(done => {
// ...
done()
- })
+ })) |
Beta Was this translation helpful? Give feedback.
5 replies
-
Any ideas? :/ This blocks me from moving some projects to vitest. I am happy to create a PR, but trying to figure out if this is something worth doing within the existing architecture |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Assume I have code like this:
Basically I am using an
await
anddone()
callback style at the same time.Is there a way to make it work with vitest?
Beta Was this translation helpful? Give feedback.
All reactions