Skip to content

Testing: Mocha done() stops subsequent tests #22150

@NiKlimenko

Description

@NiKlimenko

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

At use the standard case with the Mocha done() function, subsequent tests are not run.

it('should work', (done) => {
     done();
});

it('should work too', () => {
     // will not be executed
});

Expected behavior

The subsequent tests should continue to run.

What is the motivation / use case for changing the behavior?

Ability to write tests using Mocha

Environment


Angular version: 5.2.3


Browser:
- [x] Chrome (desktop) version 64.0.3282.140
 
For Tooling issues:
- Node version: 8.9.4  
- Platform:  Windows 10

Others:
Angular CLI used as a test starter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreIssues related to the framework runtimeneeds reproductionThis issue needs a reproduction in order for the team to investigate further

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions