@@ -28,103 +28,27 @@ export type Reporter =
2828 | CustomString ;
2929
3030export type Configs = {
31- /**
32- * By setting `true`, **Poku** won't exit the process and will return the exit code (`0` or `1`)
33- *
34- * @default false
35- */
3631 noExit ?: boolean ;
37- /**
38- * This option overwrites all `log` settings
39- *
40- * @default false
41- */
4232 debug ?: boolean ;
43- /**
44- * This option overwrites the `debug` settings
45- *
46- * @default false
47- */
4833 quiet ?: boolean ;
49- /**
50- * Determines the mode of test execution
51- *
52- * @default false
53- */
5434 sequential ?: boolean ;
55- /**
56- * Controls process isolation for test files
57- *
58- * - `'process'` (default): each test file runs in a separate child process
59- * - `'none'`: all test files run in the same process (useful for debugging with `--inspect`)
60- *
61- * @default 'process'
62- */
6335 isolation ?: 'none' | 'process' | CustomString ;
64- /**
65- * Stops the tests at the first failure.
66- *
67- * @default false
68- */
6936 failFast ?: boolean ;
70- /**
71- * Limits the number of tests running concurrently
72- *
73- * @default (availableParallelism() || cpus().lenght)
74- */
37+ /** @default (availableParallelism() || cpus().lenght) */
7538 concurrency ?: number ;
76- /**
77- * Sets the maximum time in milliseconds that each test file is allowed to run
78- *
79- * @default undefined
80- */
39+ /** Sets the maximum time in milliseconds that each test file is allowed to run */
8140 timeout ?: number ;
82- /**
83- * @default "poku"
84- */
41+ /** @default "poku" */
8542 reporter ?: Reporter ;
86- /**
87- * You can use this option to run a **callback** or a **file** before each test file on your suite
88- *
89- * ```ts
90- * beforeEach(() => myFunc())
91- * ```
92- *
93- * ```ts
94- * beforeEach(async () => await myAsyncFunc())
95- * ```
96- */
43+ /** Runs a callback or a file before each test file on your suite */
9744 beforeEach ?: ( ) => unknown | Promise < unknown > ;
98- /**
99- * You can use this option to run a **callback** or a **file** after each test file on your suite
100- *
101- * ```ts
102- * afterEach(() => myFunc())
103- * ```
104- *
105- * ```ts
106- * afterEach(async () => await myAsyncFunc())
107- * ```
108- */
45+ /** Runs a callback or a file after each test file on your suite */
10946 afterEach ?: ( ) => unknown | Promise < unknown > ;
11047 deno ?: DenoOptions ;
111- /**
112- * Plugins to extend Poku's behavior
113- *
114- * @default undefined
115- */
11648 plugins ?: PokuPlugin [ ] ;
117- /**
118- * Only run tests whose title matches the given regex pattern
119- *
120- * @default undefined
121- */
49+ /** Only run tests whose title matches the given regex pattern */
12250 testNamePattern ?: RegExp ;
123- /**
124- * Skip tests whose title matches the given regex pattern
125- *
126- * @default undefined
127- */
51+ /** Skip tests whose title matches the given regex pattern */
12852 testSkipPattern ?: RegExp ;
12953} & ListFilesConfigs ;
13054
@@ -139,17 +63,12 @@ export type States = {
13963} ;
14064
14165type CliConfigs = {
142- /** Default: searches for _`.test.`_ and `.spec.` files, but you can customize it */
14366 include ?: string | string [ ] ;
144- /** Reads an environment file and sets the environment variables */
14567 envFile ?: string ;
146- /** Terminates the specified ports, port ranges and process IDs */
68+ /** Kills the specified ports, port ranges and process IDs */
14769 kill ?: {
148- /** Terminates the specified ports before running the test suite */
14970 port ?: [ number ] ;
150- /** Terminates the specified port range before running the test suite */
15171 range ?: [ number , number ] [ ] ;
152- /** Terminates the specified processes before running the test suite */
15372 pid ?: [ number ] ;
15473 } ;
15574} ;
0 commit comments