Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Nov 13, 2024
1 parent 18d14e8 commit 04ec5fa
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/config/test/diff.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ test('diff', async () => {
const { ctx } = await runVitest({
root: './fixtures/diff',
})
const errors = ctx!.state
.getFiles()
.flatMap(f =>
f.tasks.flatMap(t => t.result?.errors ?? []),
)
const errors = ctx!.state.getFiles().flatMap(f =>
f.tasks.flatMap(t => t.result?.errors ?? []),
)
expect(
errors.map(e => e.diff && stripVTControlCharacters(e.diff)),
).matchSnapshot()
Expand Down

0 comments on commit 04ec5fa

Please sign in to comment.