neotest-jest icon indicating copy to clipboard operation
neotest-jest copied to clipboard

fakeAsync breaks the test parsing

Open maxrzaw opened this issue 1 year ago • 3 comments

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

maxrzaw avatar Sep 28 '23 22:09 maxrzaw

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 https://github.com/nvim-neotest/neotest-jest/compare/main...haus20xx:neotest-jest:main

haus20xx avatar Oct 06 '23 18:10 haus20xx

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

rip222 avatar Feb 16 '24 15:02 rip222

I have applied the fixes from @haus20xx in a PR

dlvandenberg avatar May 07 '24 08:05 dlvandenberg