MockDirectoryContentOptions.shouldReadAsText
Home > @backstage/backend-test-utils
> MockDirectoryContentOptions
> shouldReadAsText
Whether or not to return files as text rather than buffers.
Defaults to checking the file extension against a list of known text extensions.
Signature:
shouldReadAsText?: boolean | ((path: string, buffer: Buffer) => boolean);