See https://github.com/avajs/ava/issues/1428#issuecomment-633456574
EDIT: This might be of interest as well: https://nodejs.org/api/worker_threads.html
IssueHunt Summary
IssueHunt has been backed by the following sponsors. Become a sponsor
SingleProcessTestPoolwould run all tests in the main process without forking
Would solve #1332.
FYI on Jest using workers and also spread work based on the previous test duration:
http://facebook.github.io/jest/blog/2016/03/11/javascript-unit-testing-performance.html
@unional Yes, that's a good way to handle it, and with the design @Qix- is describing, it shouldn't be too hard to do.
@sindresorhus has funded $60.00 to this issue. See it on IssueHunt
Issue hunt link is auth-walled :/ Any way to see it without associating it with my account?
Edited the OP to mention https://nodejs.org/api/worker_threads.html.
@issuehuntfest has funded $200.00 to this issue. See it on IssueHunt
@futpib has funded $100.00 to this issue.
We should only support worker threads and Node.js 12.16 or higher. I think it could even be the default on supported platforms. Despite the "pool" concepts discussed here, you'll have a better chance of getting this shipped by modifying lib/fork.js.
what about using jest-worker for this?
Most helpful comment
@issuehuntfest has funded $200.00 to this issue. See it on IssueHunt