We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The change is pretty small and useful.
The use case is that I have a runner that uses cosmiconfig to get some configuration, which also can be an array, so I basically return something like
cosmiconfig
Promise.all( configs.map((cfg) => { /* runner thing */ }) )
Currently, we need to return an object only, something like
const results = await Promise.all( configs.map((cfg) => { /* runner thing */ }) ) return results[0];
But this way it won't show/report in the terminal all the test results.
The only change needed is this:
create-jest-runner/lib/createJestRunner.js
Lines 142 to 148 in e17075b
to something like
const runAllTests = Promise.all( tests.map(test => runTestInWorker(test) .then(testResult => { if (Array.isArray(testResult)) { testResult.forEach(result => result.errorMessage && result.stats.failures > 0 ? onError(new Error(result.errorMessage), test) : onResult(test, result), ); return; } onResult(test, testResult); }) .catch(err => onError(err, test)), ), );
Tested. It is working and shows all the tests.
$ jest -c jest.build.config.js PASS build @tunnckocore/utils/dist/main/index.js PASS build @tunnckocore/utils/dist/module/index.js PASS build @tunnckocore/execa/dist/main/index.js PASS build @tunnckocore/execa/dist/module/index.js
previously was showing only
PASS build @tunnckocore/utils/dist/main/index.js PASS build @tunnckocore/execa/dist/main/index.js
The text was updated successfully, but these errors were encountered:
changes for jest-community#20
bdaf944
Signed-off-by: Charlike Mike Reagent <[email protected]>
Successfully merging a pull request may close this issue.
The change is pretty small and useful.
The use case is that I have a runner that uses
cosmiconfig
to get some configuration, which also can be an array, so I basically return something likeCurrently, we need to return an object only, something like
But this way it won't show/report in the terminal all the test results.
The only change needed is this:
create-jest-runner/lib/createJestRunner.js
Lines 142 to 148 in e17075b
to something like
Tested. It is working and shows all the tests.
previously was showing only
The text was updated successfully, but these errors were encountered: