Skip to content

chore(type): make pool.type optional#575

Merged
9aoy merged 1 commit intomainfrom
pool-type
Sep 18, 2025
Merged

chore(type): make pool.type optional#575
9aoy merged 1 commit intomainfrom
pool-type

Conversation

@9aoy
Copy link
Copy Markdown
Collaborator

@9aoy 9aoy commented Sep 18, 2025

Summary

chore(type): make pool.type optional.

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings September 18, 2025 08:11
@netlify
Copy link
Copy Markdown

netlify bot commented Sep 18, 2025

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit 42def29
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/68cbbec97e13120008f128ec
😎 Deploy Preview https://deploy-preview-575--rstest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR makes the type property optional in the RstestPoolOptions type definition. The change allows the pool type to be undefined, providing more flexibility in configuration.

  • Updated TypeScript type definition to make pool.type optional
  • Synchronized documentation in both English and Chinese to reflect the type change

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
packages/core/src/types/config.ts Makes the type property optional in RstestPoolOptions type definition
website/docs/en/config/test/pool.mdx Updates English documentation to show optional type property
website/docs/zh/config/test/pool.mdx Updates Chinese documentation to show optional type property

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

export type RstestPoolOptions = {
/** Pool used to run tests in. */
type: 'fork';
type?: 'fork';
Copy link

Copilot AI Sep 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation shows type?: 'fork' but the actual type definition uses RstestPoolType which is defined as 'forks' (plural). The documentation should match the actual type: type?: 'forks' or explain the discrepancy.

Copilot uses AI. Check for mistakes.
export type RstestPoolOptions = {
/** 用于运行测试的线程池 */
type: 'fork';
type?: 'fork';
Copy link

Copilot AI Sep 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation shows type?: 'fork' but the actual type definition uses RstestPoolType which is defined as 'forks' (plural). The documentation should match the actual type: type?: 'forks' or explain the discrepancy.

Copilot uses AI. Check for mistakes.
@9aoy 9aoy merged commit d7f60c0 into main Sep 18, 2025
17 checks passed
@9aoy 9aoy deleted the pool-type branch September 18, 2025 08:21
@9aoy 9aoy mentioned this pull request Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants