From ba5cd804845517b1a5c4b04d1c08253ef27133d3 Mon Sep 17 00:00:00 2001 From: Alexis Fontaine Date: Sun, 19 May 2019 12:28:58 +0000 Subject: [PATCH] Fix TypeScript definition allowing macro-without-title-using-tests to be skipped --- index.d.ts | 2 +- test/ts-types/macros.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index c72c202ae..dfcaf073d 100644 --- a/index.d.ts +++ b/index.d.ts @@ -732,7 +732,7 @@ export interface SkipInterface { (title: string, macros: OneOrMoreMacros, ...rest: T): void; /** Skip this test. */ - (title: string, macros: OneOrMoreMacros, ...rest: T): void; + (macros: OneOrMoreMacros, ...rest: T): void; } export interface TodoDeclaration { diff --git a/test/ts-types/macros.ts b/test/ts-types/macros.ts index ca0b4dab9..3ed9e3554 100644 --- a/test/ts-types/macros.ts +++ b/test/ts-types/macros.ts @@ -72,4 +72,8 @@ import test, {ExecutionContext, Macro} from '../..'; test((t, input, expected) => { t.is(input.length, expected) }, 'foo', 3); + + test.skip((t, input, expected) => { + t.is(input.length, expected) + }, 'foo', 3); }