@internal
(include: string[], exclude: string[], cwd: string)
| 389 | |
| 390 | /** @internal */ |
| 391 | async globFiles(include: string[], exclude: string[], cwd: string) { |
| 392 | const globOptions: GlobOptions = { |
| 393 | dot: true, |
| 394 | cwd, |
| 395 | ignore: exclude, |
| 396 | expandDirectories: false, |
| 397 | } |
| 398 | |
| 399 | const files = await glob(include, globOptions) |
| 400 | // keep the slashes consistent with Vite |
| 401 | // we are not using the pathe here because it normalizes the drive letter on Windows |
| 402 | // and we want to keep it the same as working dir |
| 403 | return files.map(file => slash(path.resolve(cwd, file))) |
| 404 | } |
| 405 | |
| 406 | /** |
| 407 | * Test if a file matches the test globs. This does the actual glob matching if the test is not cached, unlike `isCachedTestFile`. |
no test coverage detected