Skip to content

Commit

Permalink
chore: make testId optional
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Nov 4, 2024
1 parent ebbadda commit 04e1ddf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/snapshot/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ interface AssertOptions {
received: unknown
filepath: string
name: string
testId: string
/**
* Not required but needed for `SnapshotClient.clearTest` to implement test-retry behavior.
* @default name
*/
testId?: string
message?: string
isInline?: boolean
properties?: object
Expand Down Expand Up @@ -99,7 +103,7 @@ export class SnapshotClient {
const {
filepath,
name,
testId,
testId = name,
message,
isInline = false,
properties,
Expand Down

0 comments on commit 04e1ddf

Please sign in to comment.