Skip to content

Commit 3c8b1be

Browse files
forivallkevva
authored andcommitted
Add t.title to TypeScript definitions (#1529)
1 parent 1423878 commit 3c8b1be

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

index.js.flow

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ type AssertContext = {
8181
*/
8282

8383
type TestContext = AssertContext & {
84+
title: string;
8485
plan(count: number): void;
8586
skip: AssertContext;
8687
};

types/base.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ export interface AssertContext {
8888
ifError(error: any, message?: string): void;
8989
}
9090
export interface TestContext extends AssertContext {
91+
/**
92+
* Test title.
93+
*/
94+
title: string;
9195
/**
9296
* Plan how many assertion there are in the test.
9397
* The test will fail if the actual assertion count doesn't match planned assertions.

0 commit comments

Comments
 (0)