You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jest.runCli returns a promise. This change updates the usage of jest.runCli to use the promise rather than pass in a callback which never will get executed.
closesaurelia#896
I'm submitting a bug report
0.33.1
Please tell us about your environment:
Operating System:
OSX 10.13.5
Node Version:
9.11.1
NPM Version:
5.8.0
Browser:
N/A
Language:
all
Loader/bundler:
all
Current behavior:
I wanted to run the jest tests automatically when running
au build --env dev
so I added the following to tasks/build.js:And the build exits every time after the test phase.
What is the expected behavior?
The build should continue to
configureEnvironment
andbuildWebpack
aftertest
.What is the motivation / use case for changing the behavior?
As discovered while reading this post: What is the official way to run jest programmatically? jestjs/jest#5048, "commit 200b032 changed the
runCli()
- it removed theonComplete
callback and replaced it with a Promise".Changing
to
fixes this issue.
The text was updated successfully, but these errors were encountered: