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
Loader/bundler:
Webpack (Bug probably occurs for any)
Current behavior:
When running au jest with a failing test cli resolves as if it passed.
Problem is located here: Line 16
if(result.numFailedTests||result.numFailedTestSuites){// Never takes this path because result does not contain numFailedTests// numFailedTests is inside a results key within result
...
}else{cb()}
// Use object destructuring to access resultsjest.runCLI(options,[path.resolve(__dirname,'../../')]).then(({ results })=>{// Use results here instead of result.}
What is the expected behavior?
If a test fails the task should fail.
What is the motivation / use case for changing the behavior?
Azure build pipeline proceeds while tests are failing, a unit test build step should fail when there are failing tests.
The text was updated successfully, but these errors were encountered:
I'm submitting a bug report
Local aurelia-cli v1.0.0-beta.12
Please tell us about your environment:
Operating System:
Azure Pipelines Hosted VS2017 image (Windows Server 2016)
Node Version:
10.14.2
NPM Version:
6.5.0
Browser:
N/A
Language:
TS (Bug probably lang independent)
Loader/bundler:
Webpack (Bug probably occurs for any)
Current behavior:
When running
au jest
with a failing test cli resolves as if it passed.Problem is located here: Line 16
result console.log:
Possible solution:
What is the expected behavior?
If a test fails the task should fail.
What is the motivation / use case for changing the behavior?
Azure build pipeline proceeds while tests are failing, a unit test build step should fail when there are failing tests.
The text was updated successfully, but these errors were encountered: