We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 121b161 commit d70b08bCopy full SHA for d70b08b
test/reporters/src/data.ts
@@ -1,4 +1,3 @@
1
-import { AssertionError } from 'node:assert'
2
import type { ErrorWithDiff, File, Suite, Task } from 'vitest'
3
4
const file: File = {
@@ -26,12 +25,13 @@ const suite: Suite = {
26
25
tasks: [],
27
}
28
29
-const error: ErrorWithDiff = new AssertionError({
+const error: ErrorWithDiff = {
+ name: 'AssertionError',
30
message: 'expected 2.23606797749979 to equal 2',
31
actual: '2.23606797749979',
32
expected: '2',
33
operator: 'strictEqual',
34
-})
+}
35
error.showDiff = true
36
error.stack = 'AssertionError: expected 2.23606797749979 to equal 2\n'
37
+ ' at /vitest/test/core/test/basic.test.ts:8:32\n'
0 commit comments