Skip to content

Using an async function in describe instead of beforeAll()? #4858

Answered by hi-ogawa
katangafor asked this question in Q&A
Discussion options

You must be logged in to vote

This is expected. As explained in #4858 (comment),

  • collection phase: run describe and test.each(posts)
  • execution phase: run () => { ... } functions from beforeAll(() => { ... }) and test('kek', () => { ... }), test.each(posts)('...', () => { ... })

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@SimonEast
Comment options

@hi-ogawa
Comment options

hi-ogawa Mar 9, 2025
Collaborator

Answer selected by sheremet-va
@alexey-sh
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants