Skip to content

Commit

Permalink
chore: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Oct 31, 2024
1 parent 3fc11d5 commit de9b88e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/snapshot/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export interface SnapshotClientOptions {
isEqual?: (received: unknown, expected: unknown) => boolean
}

// TODO: probably we don't need much refactoring here yet. separate refactoring
export class SnapshotClient {
snapshotStateMap: Map<string, SnapshotState> = new Map()

Expand Down
2 changes: 1 addition & 1 deletion packages/snapshot/src/port/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export default class SnapshotState {
error,
rawSnapshot,
}: SnapshotMatchOptions): SnapshotReturnOptions {
// this also increments counter for inline snapshots. maybe we don't need to?
// this also increments counter for inline snapshots. maybe we shouldn't?
this._counters.set(testName, (this._counters.get(testName) || 0) + 1)
const count = Number(this._counters.get(testName))

Expand Down

0 comments on commit de9b88e

Please sign in to comment.