@@ -20,7 +20,7 @@ import { assert, runFailedTests, specReporter, apiClient } from '@japa/preset-ad
20
20
| Feel free to remove existing plugins or add more.
21
21
|
22
22
*/
23
- export const plugins: Config['plugins'] = [assert(), runFailedTests(), apiClient()]
23
+ export const plugins: Required< Config> ['plugins'] = [assert(), runFailedTests(), apiClient()]
24
24
25
25
/*
26
26
|--------------------------------------------------------------------------
@@ -32,7 +32,7 @@ export const plugins: Config['plugins'] = [assert(), runFailedTests(), apiClient
32
32
| of tests on the terminal.
33
33
|
34
34
*/
35
- export const reporters: Config['reporters'] = [specReporter()]
35
+ export const reporters: Required< Config> ['reporters'] = [specReporter()]
36
36
37
37
/*
38
38
|--------------------------------------------------------------------------
@@ -46,7 +46,7 @@ export const reporters: Config['reporters'] = [specReporter()]
46
46
| within the runner hooks
47
47
|
48
48
*/
49
- export const runnerHooks: Required< Pick<Config, 'setup' | 'teardown'> > = {
49
+ export const runnerHooks: Pick<Required< Config> , 'setup' | 'teardown'> = {
50
50
setup: [() => TestUtils.ace().loadCommands()],
51
51
teardown: [],
52
52
}
@@ -62,7 +62,7 @@ export const runnerHooks: Required<Pick<Config, 'setup' | 'teardown'>> = {
62
62
| You can use this method to configure suites. For example: Only start
63
63
| the HTTP server when it is a functional suite.
64
64
*/
65
- export const configureSuite: Config['configureSuite'] = (suite) => {
65
+ export const configureSuite: Required< Config> ['configureSuite'] = (suite) => {
66
66
if (suite.name === 'functional') {
67
67
suite.setup(() => TestUtils.httpServer().start())
68
68
}
0 commit comments