Skip to content

Commit d7f60c0

Browse files
authored
chore(type): make pool.type optional (#575)
1 parent d5daec2 commit d7f60c0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/core/src/types/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export type RstestPoolType = 'forks';
1010

1111
export type RstestPoolOptions = {
1212
/** Pool used to run tests in. */
13-
type: RstestPoolType;
13+
type?: RstestPoolType;
1414
/** Maximum number or percentage of workers to run tests in. */
1515
maxWorkers?: number | string;
1616
/** Minimum number or percentage of workers to run tests in. */

website/docs/en/config/test/pool.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ overviewHeaders: []
99
```ts
1010
export type RstestPoolOptions = {
1111
/** Pool used to run tests in. */
12-
type: 'fork';
12+
type?: 'fork';
1313
/** Maximum number or percentage of workers to run tests in. */
1414
maxWorkers?: number | string;
1515
/** Minimum number or percentage of workers to run tests in. */

website/docs/zh/config/test/pool.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ overviewHeaders: []
99
```ts
1010
export type RstestPoolOptions = {
1111
/** 用于运行测试的线程池 */
12-
type: 'fork';
12+
type?: 'fork';
1313
/** 最大运行的线程池的数量或百分比 */
1414
maxWorkers?: number | string;
1515
/** 最小运行的线程池的数量或百分比 */

0 commit comments

Comments
 (0)