Skip to content

Is there a way to keep a global state between all the tests (in different files) #3011

Answered by novemberborn
Boiethios asked this question in Q&A
Discussion options

You must be logged in to vote

Yes! Through the shared workers feature.

See https://github.com/avajs/get-port for an example, that relies on https://github.com/avajs/get-port which lets you reserve a range of integers which no other test worker can then use until the first worker completes.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Boiethios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants