(fs_paths: FsPaths, dir: string): Promise<FsSearchResult[]> import {find_test_files} from '@fuzdev/gro/vitest_helpers.js'; Finds the files gro test would run in dir with its default pattern,
by Vitest's own rules rather than Gro's search_filters, which Vitest never sees:
a test beneath a build/ or .-prefixed directory runs, so it's found here too.
Symlinks are followed as Vitest follows them, through fs_paths, so a link out of the project
reaches what it points at, and a dangling one is skipped. A path is matched as it's named
through the links, and the pattern can match a directory's name, so each real directory is
searched at most once with and once without a matching name above it. That finds every file
Vitest would and ends on a loop, which Vitest follows one level in.
fs_paths
opens dir and each symlink beneath it
dir
the test directory, absolute
stringreturns
Promise<FsSearchResult[]>
the test files sorted by path, named through the links, with kind the listed one;
an empty array when nothing is at dir
throws
FsError- when `dir` isn't a directory, or a listing or a symlink's resolution fails