Skip to content

Conversation

@9aoy
Copy link
Contributor

@9aoy 9aoy commented Aug 27, 2025

Summary

update react example with @testing-library/jest-dom

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings August 27, 2025 03:44
Copy link
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 updates the React example to integrate @testing-library/jest-dom for enhanced testing assertions. The changes configure the testing environment to use jest-dom matchers and demonstrate their usage in tests.

  • Adds @testing-library/jest-dom package dependency
  • Configures TypeScript and test setup to support jest-dom matchers
  • Updates test configuration to use explicit plugin setup instead of inheriting from rsbuild config

Reviewed Changes

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

Show a summary per file
File Description
examples/react/package.json Adds @testing-library/jest-dom dependency
examples/react/test/tsconfig.json Configures TypeScript types for jest-dom matchers
examples/react/rstest.setup.ts Sets up jest-dom matchers extension
examples/react/rstest.config.ts Updates test config with setup file and explicit plugin usage
examples/react/test/App.test.tsx Demonstrates usage of jest-dom matcher toBeInTheDocument()
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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

@netlify
Copy link

netlify bot commented Aug 27, 2025

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit 8f80450
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/68ae80e0257f8500099f560d
😎 Deploy Preview https://deploy-preview-510--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 47abe2c into main Aug 27, 2025
16 checks passed
@9aoy 9aoy deleted the react-example branch August 27, 2025 03:59
@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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants