diff --git a/test/ts-types/throws.ts b/test/ts-types/throws.ts index a6d1a5720..ce3cc0140 100644 --- a/test/ts-types/throws.ts +++ b/test/ts-types/throws.ts @@ -11,7 +11,8 @@ class CustomError extends Error { test('throws', t => { const err1: Error = t.throws(() => {}); - // t.is(err1.foo, 'foo'); + // @ts-ignore + t.is(err1.foo, 'foo'); const err2: CustomError = t.throws(() => {}); t.is(err2.foo, 'foo'); const err3 = t.throws(() => {}); @@ -20,7 +21,8 @@ test('throws', t => { test('throwsAsync', async t => { const err1: Error = await t.throwsAsync(Promise.reject()); - // t.is(err1.foo, 'foo'); + // @ts-ignore + t.is(err1.foo, 'foo'); const err2 = await t.throwsAsync(Promise.reject()); t.is(err2.foo, 'foo'); });