Testing · Senior · Question 28 of 75

What is the trade-off between Vitest pools threads and forks?

Explanation

Vitest uses forks by default because some libraries break inside worker threads (e.g. segfaults with native addons).

Further reading

Problem with a question

Testing · Senior · question 28

Test yourself

Take the Testing · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz