Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/reporters/src/data.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { AssertionError } from 'node:assert'
import type { ErrorWithDiff, File, Suite, Task } from 'vitest'

const file: File = {
Expand Down Expand Up @@ -26,12 +25,13 @@ const suite: Suite = {
tasks: [],
}

const error: ErrorWithDiff = new AssertionError({
const error: ErrorWithDiff = {
name: 'AssertionError',
message: 'expected 2.23606797749979 to equal 2',
actual: '2.23606797749979',
expected: '2',
operator: 'strictEqual',
})
}
error.showDiff = true
error.stack = 'AssertionError: expected 2.23606797749979 to equal 2\n'
+ ' at /vitest/test/core/test/basic.test.ts:8:32\n'
Expand Down