Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Oct 1, 2023
1 parent 8d3ee83 commit be53a32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 3 additions & 0 deletions packages/vitest/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ export function resolveConfig(
: new RegExp(resolved.testNamePattern)
: undefined

if (resolved.snapshotFormat && 'plugins' in resolved.snapshotFormat)
(resolved.snapshotFormat as any).plugins = []

const UPDATE_SNAPSHOT = resolved.update || process.env.UPDATE_SNAPSHOT
resolved.snapshotOptions = {
snapshotFormat: resolved.snapshotFormat || {},
Expand Down
5 changes: 0 additions & 5 deletions packages/vitest/src/node/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,14 +307,9 @@ export class WorkspaceProject {
},
},
},
snapshotFormat: {},
snapshotOptions: {
...this.config.snapshotOptions,
resolveSnapshotPath: undefined,
snapshotFormat: {
...this.config.snapshotOptions?.snapshotFormat,
plugins: [],
},
},
onConsoleLog: undefined!,
sequence: {
Expand Down

0 comments on commit be53a32

Please sign in to comment.