(testFilePath: string, options: SnapshotStateOptions)
| 122 | } |
| 123 | |
| 124 | static async create(testFilePath: string, options: SnapshotStateOptions): Promise<SnapshotState> { |
| 125 | const snapshotPath = await options.snapshotEnvironment.resolvePath( |
| 126 | testFilePath, |
| 127 | ) |
| 128 | const content = await options.snapshotEnvironment.readSnapshotFile( |
| 129 | snapshotPath, |
| 130 | ) |
| 131 | return new SnapshotState(testFilePath, snapshotPath, content, options) |
| 132 | } |
| 133 | |
| 134 | get snapshotUpdateState(): SnapshotUpdateState { |
| 135 | return this._updateSnapshot |
no test coverage detected