MockDirectoryContentOptions
Home > @backstage/backend-test-utils
> MockDirectoryContentOptions
Options for MockDirectory.content().
Signature:
export interface MockDirectoryContentOptions
Properties
Property |
Modifiers |
Type |
Description |
---|---|---|---|
string |
(Optional) The path to read content from. Defaults to the root of the mock directory. An absolute path can also be provided, as long as it is a child path of the mock directory. | ||
boolean | ((path: string, buffer: Buffer) => boolean) |
(Optional) Whether or not to return files as text rather than buffers. Defaults to checking the file extension against a list of known text extensions. |