Skip to content

docs: add chainable modifiers examples#500

Merged
9aoy merged 1 commit intomainfrom
docs/chainable-modifiers
Aug 22, 2025
Merged

docs: add chainable modifiers examples#500
9aoy merged 1 commit intomainfrom
docs/chainable-modifiers

Conversation

@9aoy
Copy link
Copy Markdown
Collaborator

@9aoy 9aoy commented Aug 22, 2025

Summary

add chainable modifiers examples for describe and test API.

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings August 22, 2025 04:01
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 adds documentation for chainable modifiers functionality to the test API documentation. It explains how different modifiers can be combined together for both test and describe functions.

  • Adds chainable modifiers section to both test.mdx and describe.mdx documentation files
  • Provides practical examples of how to chain different modifiers like only, runIf, skipIf, concurrent, and for

Reviewed Changes

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

File Description
website/docs/en/api/test-api/test.mdx Added chainable modifiers section with examples for test API
website/docs/en/api/test-api/describe.mdx Added chainable modifiers section with examples for describe API

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

- `test.only.concurrent` (or `test.concurrent.only`) will only run the test block concurrently.
- `test.for(cases).concurrent` (or `test.concurrent.for(cases)`) will run the test block concurrently for each case in the provided array.
- ......

Copy link

Copilot AI Aug 22, 2025

Choose a reason for hiding this comment

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

Using '......' as an ellipsis is unprofessional in documentation. Consider either providing more specific examples or removing this line entirely.

Suggested change
For a complete list of available chainable modifiers, see the API reference.

Copilot uses AI. Check for mistakes.
- `describe.skipIf(condition).concurrent` (or `describe.concurrent.skipIf(condition)`) will skip the describe block if the condition is true, otherwise run the tests concurrently.
- `describe.runIf(condition).concurrent` (or `describe.concurrent.runIf(condition)`) will only run the describe block concurrently if the condition is true.
- `describe.only.concurrent` (or `describe.concurrent.only`) will only run the describe block concurrently.
- ......
Copy link

Copilot AI Aug 22, 2025

Choose a reason for hiding this comment

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

Using '......' as an ellipsis is unprofessional in documentation. Consider either providing more specific examples or removing this line entirely.

Suggested change
- ......

Copilot uses AI. Check for mistakes.
@netlify
Copy link
Copy Markdown

netlify bot commented Aug 22, 2025

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit ae16142
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/68a7eb9a15a23d000804cd19
😎 Deploy Preview https://deploy-preview-500--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.

@9aoy 9aoy merged commit c56eb38 into main Aug 22, 2025
16 checks passed
@9aoy 9aoy deleted the docs/chainable-modifiers branch August 22, 2025 05:18
@9aoy 9aoy mentioned this pull request Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants