@serenity-js/core
Version:
The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure
19 lines • 462 B
JavaScript
import fg from 'fast-glob';
import { Path } from './Path.js';
export class FileFinder {
cwd;
constructor(cwd) {
this.cwd = cwd;
}
filesMatching(globPatterns) {
if (!globPatterns) {
return [];
}
return fg.sync(globPatterns, {
cwd: this.cwd.value,
absolute: true,
unique: true,
}).map((value) => new Path(value));
}
}
//# sourceMappingURL=FileFinder.js.map