Skip to content

Commit

Permalink
Fix TypeScript definition allowing macro-without-title-using-tests to…
Browse files Browse the repository at this point in the history
… be skipped
  • Loading branch information
alexisfontaine authored and novemberborn committed May 19, 2019
1 parent 13a89e1 commit ba5cd80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ export interface SkipInterface<Context = {}> {
<T extends any[]>(title: string, macros: OneOrMoreMacros<T, Context>, ...rest: T): void;

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

export interface TodoDeclaration {
Expand Down
4 changes: 4 additions & 0 deletions test/ts-types/macros.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit ba5cd80

Please sign in to comment.