Skip to content

docs: polish chaiConfig#897

Merged
9aoy merged 4 commits intomainfrom
truncateThreshold
Jan 23, 2026
Merged

docs: polish chaiConfig#897
9aoy merged 4 commits intomainfrom
truncateThreshold

Conversation

@9aoy
Copy link
Copy Markdown
Collaborator

@9aoy 9aoy commented Jan 22, 2026

Summary

docs: polish chaiConfig

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings January 22, 2026 10:49
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 pull request polishes the documentation for the chaiConfig configuration option by expanding it with detailed explanations and examples for the truncateThreshold and showDiff properties, while removing the unused includeStack property from the type definition.

Changes:

  • Removed includeStack field from ChaiConfig type definition in documentation (with a TODO comment added in TypeScript noting it seems unused)
  • Added comprehensive documentation for truncateThreshold with examples showing truncated vs full output
  • Added comprehensive documentation for showDiff with examples demonstrating diff output vs plain text

Reviewed changes

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

File Description
website/docs/en/config/test/chai-config.mdx Expanded English documentation with detailed sections for truncateThreshold and showDiff, removed includeStack
website/docs/zh/config/test/chai-config.mdx Expanded Chinese documentation with detailed sections for truncateThreshold and showDiff, removed includeStack
packages/core/src/types/config.ts Added TODO comment noting that chaiConfig.includeStack seems not used

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Jan 22, 2026

Deploying rstest with  Cloudflare Pages  Cloudflare Pages

Latest commit: 135c69a
Status: ✅  Deploy successful!
Preview URL: https://651138bc.rstest.pages.dev
Branch Preview URL: https://truncatethreshold.rstest.pages.dev

View logs

9aoy and others added 2 commits January 22, 2026 19:50
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@9aoy 9aoy merged commit d5e682f into main Jan 23, 2026
10 checks passed
@9aoy 9aoy deleted the truncateThreshold branch January 23, 2026 02:58
@9aoy 9aoy mentioned this pull request Jan 27, 2026
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