Skip to content
New issue

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

fakeAsync breaks the test parsing #81

Open
maxrzaw opened this issue Sep 28, 2023 · 3 comments · May be fixed by #120
Open

fakeAsync breaks the test parsing #81

maxrzaw opened this issue Sep 28, 2023 · 3 comments · May be fixed by #120

Comments

@maxrzaw
Copy link

maxrzaw commented Sep 28, 2023

In angular, you can write a test like this:

describe('Component', () => {
  it('should do something after 60 seconds', fakeAsync(() => {
    tick(1000 * 60);
    expect(true).toBe(true);
  }));
});

However, this test is not recognized by the parser.
Docs: https://angular.io/api/core/testing/fakeAsync

@haus20xx
Copy link

haus20xx commented Oct 6, 2023

I forked and fixed this locally https://github.com/haus20xx/neotest-jest I haven't synced it lately but you could replicate the change I made here main...haus20xx:neotest-jest:main

@rip222
Copy link

rip222 commented Feb 16, 2024

I forked and fixed this locally https://github.com/haus20xx/neotest-jest I haven't synced it lately but you could replicate the change I made here main...haus20xx:neotest-jest:main

please merge this, otherwise all "fakeAsync" wrapped tests are ignored

@dlvandenberg
Copy link

I have applied the fixes from @haus20xx in a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants