Skip to main content

BettererFileResolver.validate()

API > @betterer/betterer > BettererFileResolver > validate

Validate if some file paths are relevant for a test. Files can be included and excluded via BettererFileTest.include() and BettererFileTest.exclude().

Signature

validate(filePaths: BettererFilePaths): Promise<BettererFilePaths>;

Parameters

ParameterTypeDescription
filePathsBettererFilePathsAn array of paths to validate.

Returns

Promise<BettererFilePaths>

The given paths filtered for relevance based on the includes and excludes of the BettererFileResolver.