mocha-parallel-tests
mocha-parallel-tests copied to clipboard
feat: add --share-envs and --stream-output options
Probably not strictly related to your changes but more to your use case: environment variables will be shared between the workers and the main process but how're you going to let worker B know about the changes in environment variables in worker A?
Great question! I wrote a beforeEach and afterEach hooks that capture and release the locks for the different services using the environment variables.
Typescript is failing because of this: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/41562 :(
Also, let's wait until your PR to @types/node gets merged and update the code in this PR.
Also, let's wait until your PR to @types/node gets merged and update the code in this PR.
Update: My PR is duplicated with: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/41356 so we just wait until this one will be approved 😩