nvim-neotest / neotest-jest

MIT License
123 stars 80 forks source link

fakeAsync breaks the test parsing #81

Open maxrzaw opened 1 year ago

maxrzaw commented 1 year 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 1 year 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 9 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 6 months ago

I have applied the fixes from @haus20xx in a PR