Skip to content

Commit ba5cd80

Browse files
alexisfontainenovemberborn
authored andcommitted
Fix TypeScript definition allowing macro-without-title-using-tests to be skipped
1 parent 13a89e1 commit ba5cd80

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ export interface SkipInterface<Context = {}> {
732732
<T extends any[]>(title: string, macros: OneOrMoreMacros<T, Context>, ...rest: T): void;
733733

734734
/** Skip this test. */
735-
<T extends any[]>(title: string, macros: OneOrMoreMacros<T, Context>, ...rest: T): void;
735+
<T extends any[]>(macros: OneOrMoreMacros<T, Context>, ...rest: T): void;
736736
}
737737

738738
export interface TodoDeclaration {

test/ts-types/macros.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,8 @@ import test, {ExecutionContext, Macro} from '../..';
7272
test((t, input, expected) => {
7373
t.is(input.length, expected)
7474
}, 'foo', 3);
75+
76+
test.skip((t, input, expected) => {
77+
t.is(input.length, expected)
78+
}, 'foo', 3);
7579
}

0 commit comments

Comments
 (0)