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 aa35f15 commit 5db3573Copy full SHA for 5db3573
test/ts-types/throws.ts
@@ -11,7 +11,8 @@ class CustomError extends Error {
11
12
test('throws', t => {
13
const err1: Error = t.throws(() => {});
14
- // t.is(err1.foo, 'foo');
+ // @ts-ignore
15
+ t.is(err1.foo, 'foo');
16
const err2: CustomError = t.throws(() => {});
17
t.is(err2.foo, 'foo');
18
const err3 = t.throws<CustomError>(() => {});
@@ -20,7 +21,8 @@ test('throws', t => {
20
21
22
test('throwsAsync', async t => {
23
const err1: Error = await t.throwsAsync(Promise.reject());
24
25
26
const err2 = await t.throwsAsync<CustomError>(Promise.reject());
27
28
});
0 commit comments