(
options: Pick<SnapshotMatchOptions, 'testName' | 'testId' | 'isInline' | 'inlineSnapshot'>,
)
| 448 | } |
| 449 | |
| 450 | probeExpectedSnapshot( |
| 451 | options: Pick<SnapshotMatchOptions, 'testName' | 'testId' | 'isInline' | 'inlineSnapshot'>, |
| 452 | ): ExpectedSnapshot { |
| 453 | const count = this._counters.get(options.testName) + 1 |
| 454 | const key = testNameToKey(options.testName, count) |
| 455 | return { |
| 456 | key, |
| 457 | count, |
| 458 | data: options?.isInline ? options.inlineSnapshot : this._snapshotData[key], |
| 459 | markAsChecked: () => { |
| 460 | this._counters.increment(options.testName) |
| 461 | this._testIdToKeys.get(options.testId).push(key) |
| 462 | this._uncheckedKeys.delete(key) |
| 463 | }, |
| 464 | } |
| 465 | } |
| 466 | |
| 467 | match({ |
| 468 | testId, |
no test coverage detected