Function filterTestFilePaths

  • Takes an iterable of URLs and only yields the ones that finish with .test.*.

    Example

    filterTestFilePaths(["/path/to/tests/a.test.js", "/path/to/tests/b.ts"]); // ["/path/to/tests/a.test.js"]
    

    Yields

    Test URLs.

    Parameters

    Returns AsyncGenerator<Readonly<URL>, void, unknown>