@@ -3,19 +3,19 @@ interface TestOptions {
3
3
* The number of tests that can be run at the same time. If unspecified, subtests inherit this value from their parent.
4
4
* Default: 1.
5
5
*/
6
- concurrency ?: boolean | number
6
+ concurrency ?: boolean | number ;
7
7
8
8
/**
9
9
* If truthy, the test is skipped. If a string is provided, that string is displayed in the test results as the reason for skipping the test.
10
10
* Default: false.
11
11
*/
12
- skip ?: boolean | string
12
+ skip ?: boolean | string ;
13
13
14
14
/**
15
15
* If truthy, the test marked as TODO. If a string is provided, that string is displayed in the test results as the reason why the test is TODO.
16
16
* Default: false.
17
17
*/
18
- todo ?: boolean | string
18
+ todo ?: boolean | string ;
19
19
20
20
/**
21
21
* A number of milliseconds the test will fail after. If unspecified, subtests inherit this value from their parent.
@@ -29,48 +29,48 @@ interface TestOptions {
29
29
signal ?: AbortSignal ;
30
30
}
31
31
32
- type TestFn = ( t : TestContext ) => any | Promise < any >
32
+ type TestFn = ( t : TestContext ) => any | Promise < any > ;
33
33
34
- export default test
34
+ export default test ;
35
35
36
- export function test ( name : string , options : TestOptions , fn : TestFn ) : void
37
- export function test ( name : string , fn : TestFn ) : void
38
- export function test ( options : TestOptions , fn : TestFn ) : void
39
- export function test ( fn : TestFn ) : void
36
+ export function test ( name : string , options : TestOptions , fn : TestFn ) : void ;
37
+ export function test ( name : string , fn : TestFn ) : void ;
38
+ export function test ( options : TestOptions , fn : TestFn ) : void ;
39
+ export function test ( fn : TestFn ) : void ;
40
40
41
41
type SuiteFn = ( t : SuiteContext ) => void ;
42
42
43
- export function describe ( name : string , options : TestOptions , fn : SuiteFn ) : void
44
- export function describe ( name : string , fn : SuiteFn ) : void
45
- export function describe ( options : TestOptions , fn : SuiteFn ) : void
46
- export function describe ( fn : SuiteFn ) : void
43
+ export function describe ( name : string , options : TestOptions , fn : SuiteFn ) : void ;
44
+ export function describe ( name : string , fn : SuiteFn ) : void ;
45
+ export function describe ( options : TestOptions , fn : SuiteFn ) : void ;
46
+ export function describe ( fn : SuiteFn ) : void ;
47
47
48
- type ItFn = ( t : ItContext ) => any | Promise < any >
48
+ type ItFn = ( t : ItContext ) => any | Promise < any > ;
49
49
50
- export function it ( name : string , options : TestOptions , fn : ItFn ) : void
51
- export function it ( name : string , fn : ItFn ) : void
52
- export function it ( options : TestOptions , fn : ItFn ) : void
53
- export function it ( fn : ItFn ) : void
50
+ export function it ( name : string , options : TestOptions , fn : ItFn ) : void ;
51
+ export function it ( name : string , fn : ItFn ) : void ;
52
+ export function it ( options : TestOptions , fn : ItFn ) : void ;
53
+ export function it ( fn : ItFn ) : void ;
54
54
55
55
/**
56
56
* An instance of TestContext is passed to each test function in order to interact with the test runner.
57
57
* However, the TestContext constructor is not exposed as part of the API.
58
58
*/
59
- declare class TestContext {
59
+ declare class TestContext {
60
60
/**
61
61
* This function is used to create subtests under the current test. This function behaves in the same fashion as the top level test() function.
62
62
*/
63
- public test ( name : string , options : TestOptions , fn : TestFn ) : Promise < void >
64
- public test ( name : string , fn : TestFn ) : Promise < void >
65
- public test ( fn : TestFn ) : Promise < void >
63
+ public test ( name : string , options : TestOptions , fn : TestFn ) : Promise < void > ;
64
+ public test ( name : string , fn : TestFn ) : Promise < void > ;
65
+ public test ( fn : TestFn ) : Promise < void > ;
66
66
67
67
/**
68
68
* This function is used to write TAP diagnostics to the output.
69
69
* Any diagnostic information is included at the end of the test's results. This function does not return a value.
70
70
*
71
71
* @param message Message to be displayed as a TAP diagnostic.
72
72
*/
73
- public diagnostic ( message : string ) : void
73
+ public diagnostic ( message : string ) : void ;
74
74
75
75
/**
76
76
* This function causes the test's output to indicate the test as skipped.
@@ -79,7 +79,7 @@ export function it (fn: ItFn): void
79
79
*
80
80
* @param message Optional skip message to be displayed in TAP output.
81
81
*/
82
- public skip ( message ?: string ) : void
82
+ public skip ( message ?: string ) : void ;
83
83
84
84
/**
85
85
* This function adds a TODO directive to the test's output.
@@ -88,35 +88,32 @@ export function it (fn: ItFn): void
88
88
*
89
89
* @param message Optional TODO message to be displayed in TAP output.
90
90
*/
91
- public todo ( message ?: string ) : void
91
+ public todo ( message ?: string ) : void ;
92
92
93
93
/**
94
94
* Can be used to abort test subtasks when the test has been aborted.
95
95
*/
96
- public signal : AbortSignal
96
+ public signal : AbortSignal ;
97
97
}
98
98
99
-
100
99
/**
101
- * An instance of SuiteContext is passed to each suite function in order to interact with the test runner.
100
+ * An instance of SuiteContext is passed to each suite function in order to interact with the test runner.
102
101
* However, the SuiteContext constructor is not exposed as part of the API.
103
102
*/
104
- declare class SuiteContext {
105
-
103
+ declare class SuiteContext {
106
104
/**
107
105
* Can be used to abort test subtasks when the test has been aborted.
108
106
*/
109
- public signal : AbortSignal
107
+ public signal : AbortSignal ;
110
108
}
111
109
112
110
/**
113
- * An instance of ItContext is passed to each suite function in order to interact with the test runner.
111
+ * An instance of ItContext is passed to each suite function in order to interact with the test runner.
114
112
* However, the ItContext constructor is not exposed as part of the API.
115
113
*/
116
- declare class ItContext {
117
-
114
+ declare class ItContext {
118
115
/**
119
116
* Can be used to abort test subtasks when the test has been aborted.
120
117
*/
121
- public signal : AbortSignal
118
+ public signal : AbortSignal ;
122
119
}
0 commit comments