MockDirectory
Home > @backstage/backend-test-utils > MockDirectory
A utility for creating a mock directory that is automatically cleaned up.
Signature:
export interface MockDirectory
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
string |
The path to the root of the mock directory |
Methods
|
Method |
Description |
|---|---|
|
Adds content of the mock directory. This will overwrite existing files. | |
|
Clears the content of the mock directory, ensuring that the directory itself exists. | |
|
Reads the content of the mock directory. | |
|
Removes the mock directory and all its contents. | |
|
Resolves a path relative to the root of the mock directory. | |
|
Sets the content of the mock directory. This will remove any existing content. |