The root directory for the data test API. It can be relative or absolute.
Optional
filter: (file: Dirent) => booleanAn optional filter function to determine which files to include. Defaults to filtering only files. /!\ If you provide a filter and want to get only files, yuo must specify it in your filter.
Find the data (as a Buffer) of a file by its name in the root directory (recursive). This method does not use the filter, so it will return the file if it is found, even if it does not match the filter.
Find a FileEntry object by its name in the root directory (recursive). This method does not use the filter, so it will return the file if it founds, even if it does not match the filter.
Get the data (as a Buffer) of a file for a specific path relative to the root directory. This method does not use the filter, so it will return the data if the file exists, even if it does not match the filter.
Get a FileEntry object for a specific file path relative to the root directory. This method does not use the filter, so it will return the file if it exists, even if it does not match the filter.
Create a new instance of DataTestApi.