nvim-neotest / neotest-jest

MIT License
116 stars 79 forks source link

fakeAsync breaks the test parsing #81

Open maxrzaw opened 11 months ago

maxrzaw commented 11 months ago

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 commented 11 months ago

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

rip222 commented 6 months ago

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 commented 4 months ago

I have applied the fixes from @haus20xx in a PR