(
filepath: string,
options: SnapshotStateOptions,
)
| 81 | constructor(private options: SnapshotClientOptions = {}) {} |
| 82 | |
| 83 | async setup( |
| 84 | filepath: string, |
| 85 | options: SnapshotStateOptions, |
| 86 | ): Promise<void> { |
| 87 | if (this.snapshotStateMap.has(filepath)) { |
| 88 | return |
| 89 | } |
| 90 | this.snapshotStateMap.set( |
| 91 | filepath, |
| 92 | await SnapshotState.create(filepath, options), |
| 93 | ) |
| 94 | } |
| 95 | |
| 96 | async finish(filepath: string): Promise<SnapshotResult> { |
| 97 | const state = this.getSnapshotState(filepath) |
no test coverage detected