Skip to content

Commit

Permalink
chore: revert snapshot changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Mar 26, 2024
1 parent 63cb87e commit e2fd18e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vitest/src/integrations/snapshot/chai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const SnapshotPlugin: ChaiPlugin = (chai, utils) => {
return {}
return {
filepath: test.file.filepath,
name: getNames(test).join(' > '),
name: getNames(test).slice(1).join(' > '),
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/vitest/src/runtime/runners/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class VitestTestRunner implements VitestRunner {
// mark snapshots in skipped tests as not obsolete
for (const test of getTests(suite)) {
if (test.mode === 'skip') {
const name = getNames(test).join(' > ')
const name = getNames(test).slice(1).join(' > ')
this.snapshotClient.skipTestSnapshots(name)
}
}
Expand Down

0 comments on commit e2fd18e

Please sign in to comment.