base-ui icon indicating copy to clipboard operation
base-ui copied to clipboard

[test] Shorten Testing Library error messages

Open michaldudak opened this issue 7 months ago • 3 comments

React Testing Library often includes the HTML of the whole document when a test fails. This is unnecessary and makes the test output long and hard to read.

michaldudak avatar May 09 '25 10:05 michaldudak

Open in StackBlitz

npm i https://pkg.pr.new/@base-ui-components/react@1900

commit: 843ce89

pkg-pr-new[bot] avatar May 09 '25 10:05 pkg-pr-new[bot]

Deploy Preview for base-ui ready!

Name Link
Latest commit 843ce89045fb3cbc893ca6cbcd189f74a85e4dee
Latest deploy log https://app.netlify.com/sites/base-ui/deploys/681ddd73dc4bc2000833208d
Deploy Preview https://deploy-preview-1900--base-ui.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 site configuration.

netlify[bot] avatar May 09 '25 10:05 netlify[bot]

This messes up the stack trace. Needs more work.

michaldudak avatar May 09 '25 11:05 michaldudak