Defined in: packages/fs-testkit/src/snapshot.js:8
create(name?): Promise<string>;
Defined in: packages/fs-testkit/src/snapshot.js:25
Create a snapshot of the file system with the given name
| Parameter | Type | Description |
|---|---|---|
name? | string | - |
Promise<string>
delete(name): Promise<void>;
Defined in: packages/fs-testkit/src/snapshot.js:48
Delete an existing snapshot
| Parameter | Type | Description |
|---|---|---|
name | string | - |
Promise<void>
diff(from, to): Promise<DirDiff[]>;
Defined in: packages/fs-testkit/src/snapshot.js:58
Get an array of differences between two snapshots
| Parameter | Type | Description |
|---|---|---|
from | string | - |
to | string | - |
Promise<DirDiff[]>
restore(name): Promise<void>;
Defined in: packages/fs-testkit/src/snapshot.js:39
Restore the filesystem at a given snapshot
| Parameter | Type | Description |
|---|---|---|
name | string | - |
Promise<void>