Libraries, utilities, and tools to enable you to write tests that resemble the way your software is used. @ReactJS, @VueJS, @Cypress_IO, @angular, @fbjest, more
Heads up to anyone using JSDom for testing, I believe as of three days ago there was a change to some sub-deps that broke behavior for anyone upgrading their package lock:
github.com/jsdom/cssstyle/is…
I'm working on a fix right now
New Wallaby 2 feature: ✨ HTML highlighting for @TestingLib errors and screen.debug() output, styled with your editor theme 🎨 for easier, readable debugging. 🔍
We're super happy to welcome Qwik Testing Library to our ecosystem and docs site!
If you're a @QwikDev user, give it a spin here
testing-library.com/docs/qwi…
I'm thrilled to finally announce the release of a new @testing-library, React RenderStream testing library.
We have been using the underlying approach in over 500 Apollo Client tests for a year now, and it has given us a new level of confidence.
(Link in next Post)
I'm thrilled to finally announce the release of a new @testing-library, React RenderStream testing library.
We have been using the underlying approach in over 500 Apollo Client tests for a year now, and it has given us a new level of confidence.
(Link in next Post)
Heads up @TestingLib users 🐙
Due to multiple issues we've observed in the past releases, we've just released a new major of React Testing Library (16) that moves @testing-library/dom to a peer dependency.
Keep in mind that you'll need to manually install DTL from that version.
ALT React migration guide that says: Deprecated: react-test-renderer
We are deprecating react-test-renderer because it implements its own renderer environment that doesn’t match the environment users use, promotes testing implementation details, and relies on introspection of React’s internals.
The test renderer was created before there were more viable testing strategies available like React Testing Library, and we now recommend using a modern testing library instead.
In React 19, react-test-renderer logs a deprecation warning, and has switched to concurrent rendering. We recommend migrating your tests to @testing-library/react or @testing-library/react-native for a modern and well supported testing experience.
🚀 We released #Angular Testing Library v16 today
With this update, you receive the latest specification updates for role/element mappings to align with WAI-ARIA 1.2.
Why should you care?
🔎 better role support, including new roles
⚠️ existing queries might behave differently
🎉 🎉🎉
A new major version of React @TestingLib was released (15.0.0) - This release drops support for Node 14, Node 16 and most importantly, adds support for new ARIA roles defined as part of WAI-ARIA 1.2.
If you have any feedback or issues, feel free to reach out.
Here's an opportunity to contribute to @TestingLib's jest-dom 🦉 and dive into the world of accessibility: Create the toBeActiveDescendant custom matcher. Your chance to learn and make a positive impact awaits.
🤝 Check it out github.com/testing-library/j…
We see this asked quite a lot: If you've migrated from Jest to Vitest and looking for the jest-dom equivalent for @vitest_dev, just edit your setup file 🦉
ALT Use import '@testing-library/jest-dom/vitest' instead of import '@testing-library/jest-dom' to get jest-dom assertions in Vitest.
🚨 Implementation detail 🚨
Lately, I've been seeing this pattern for testing async stuff. This pattern creates a new promise and awaits for it to resolve.
This means we'll wait for all async operations to finish.
Prefer @TestingLib waitFor with a meaningful assertion.
ALT A bad example awaiting a new promise with a setImmediate vs a waitFor from testing-library with a meaningful assertion.
#Angular Testing Library v13 is released 🚀
This release contains:
- more control over component Input properties
- more control over CD
- extra's for standalone components
Thanks @antischematic for the ideas and help 🏆
github.com/testing-library/a…
📣 @testing-library/react@13.1.0 just shipped with a new built-in renderHook function that operates similar to @testing-library/react-hooks but with support for React v18 🎉
React Testing Library v13 with support for React 18 is now released.
Upgrade now if your app is using React 18.
npmjs.com/package/@testing-l…
Many thanks @sebsilbermann for the hard work on this release!
The documentation for @TestingLib's user-event has been updated.
If you are actively working on a project, we recommend to switch to `v14-beta` now. 🚀
Check it out! 👇
testing-library.com/user-eve…