WorkerThreads in AVA #3337
Replies: 3 comments 3 replies
-
I'm not sure if you can create a worker thread from inside a worker thread actually. Child processes may be better. |
Beta Was this translation helpful? Give feedback.
-
@novemberborn @sindresorhus If workerThreads has been configured in ava as false, then is it possible and valid for me to create worker thread in the lib code? Your answers will really help us here |
Beta Was this translation helpful? Give feedback.
-
@novemberborn @sindresorhus I have one more question. In AVA V5 if the workerThreads has been set as false, do AVA still run the tests in a single thread or it will use subprocesses? The reason Im asking this was, when we try to register a hapi.js plugin in worker thread ... AVA was not allowing to do it since not all properties are set... which will be set if we have the correct context. From the research from chatgpt discussion, the properties wont be set if they are started by worker threads |
Beta Was this translation helpful? Give feedback.
-
Hi @novemberborn and AVA team.
Context: My project uses worker threads to log the details, when I migrate from V2 to V5 the tests are not working as expected. However they worked after adding a configuration "workerThreads": false
Im interested in knowing the details indepth, please enlight me
Beta Was this translation helpful? Give feedback.
All reactions