Skip to content

Commit

Permalink
chore: allow expandSnapshotDiff in the config
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Nov 4, 2023
1 parent 686e265 commit 853e2bd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/vitest/src/types/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,11 @@ export interface InlineConfig {
* @default 0
*/
retry?: number

/**
* Show full diff when snapshot fails instead of a patch.
*/
expandSnapshotDiff?: boolean
}

export interface TypecheckConfig {
Expand Down Expand Up @@ -711,11 +716,6 @@ export interface UserConfig extends InlineConfig {
* @example --shard=2/3
*/
shard?: string

/**
* Show full diff when snapshot fails instead of a patch.
*/
expandSnapshotDiff?: boolean
}

export interface ResolvedConfig extends Omit<Required<UserConfig>, 'config' | 'filters' | 'browser' | 'coverage' | 'testNamePattern' | 'related' | 'api' | 'reporters' | 'resolveSnapshotPath' | 'benchmark' | 'shard' | 'cache' | 'sequence' | 'typecheck' | 'runner' | 'poolOptions' | 'pool'> {
Expand Down

0 comments on commit 853e2bd

Please sign in to comment.