Skip to content

docs: polish expect api#576

Merged
9aoy merged 1 commit intomainfrom
docs/polish-expect-api
Sep 18, 2025
Merged

docs: polish expect api#576
9aoy merged 1 commit intomainfrom
docs/polish-expect-api

Conversation

@9aoy
Copy link
Copy Markdown
Collaborator

@9aoy 9aoy commented Sep 18, 2025

Summary

polish expect api doc.

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:45
@netlify
Copy link
Copy Markdown

netlify bot commented Sep 18, 2025

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit 28b60f9
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/68cbc6c16710ec000895da1d
😎 Deploy Preview https://deploy-preview-576--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 enhances the expect API documentation by adding usage examples and updating interface definitions. The changes improve the documentation's clarity by showing practical examples of how to import and use the expect API in tests.

  • Added comprehensive usage examples for the expect API in both English and Chinese documentation
  • Updated TestContext interface to include the onTestFailed hook
  • Minor wording improvements for better clarity

Reviewed Changes

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

File Description
website/docs/zh/api/test-api/test.mdx Added onTestFailed hook to TestContext interface and improved wording
website/docs/zh/api/test-api/expect.mdx Added usage examples showing import methods and basic test scenarios
website/docs/en/api/test-api/test.mdx Added onTestFailed hook to TestContext interface and improved wording
website/docs/en/api/test-api/expect.mdx Added usage examples showing import methods and basic test scenarios

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

@9aoy 9aoy merged commit 48a6c3d into main Sep 18, 2025
17 checks passed
@9aoy 9aoy deleted the docs/polish-expect-api branch September 18, 2025 09:04
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants