Skip to content

Commit 93f5cef

Browse files
authored
test: add util-inspect-error-cause snapshot fixture
1 parent e00fa41 commit 93f5cef

1 file changed

Lines changed: 69 additions & 0 deletions

File tree

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
Error: Number error cause
2+
at *
3+
at *
4+
at *
5+
at *
6+
at *
7+
at *
8+
at *
9+
at * {
10+
[cause]: 42
11+
}
12+
Error: Object cause
13+
at *
14+
at *
15+
at *
16+
at *
17+
at *
18+
at *
19+
at *
20+
at * {
21+
[cause]: {
22+
message: 'Unique',
23+
name: 'Error',
24+
stack: 'Error: Unique\n' +
25+
' at Module._compile (node:internal*modules*cjs*loader:*:*)'
26+
}
27+
}
28+
Error: undefined cause
29+
at *
30+
at *
31+
at *
32+
at *
33+
at *
34+
at *
35+
at *
36+
at * {
37+
[cause]: undefined
38+
}
39+
Error: Stack causes
40+
at *
41+
at *
42+
at *
43+
at *
44+
at *
45+
at *
46+
at *
47+
at * {
48+
[cause]: FoobarError: Individual message
49+
at *
50+
at *
51+
at *
52+
at *
53+
at *
54+
at *
55+
at *
56+
at * {
57+
status: 'Feeling good',
58+
extraProperties: 'Yes!',
59+
[cause]: TypeError: Inner error
60+
at *
61+
at *
62+
at *
63+
at *
64+
at *
65+
at *
66+
at *
67+
at *
68+
}
69+
}

0 commit comments

Comments
 (0)