dom-testing-library
🐙 Simple and complete DOM testing utilities that encourage good testing practices. (by testing-library)
atl-good-testing-practices
By timdeschryver
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
dom-testing-library | atl-good-testing-practices | |
---|---|---|
4 | 1 | |
3,233 | 2 | |
0.4% | - | |
6.5 | 0.0 | |
4 days ago | almost 2 years ago | |
JavaScript | TypeScript | |
MIT License | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dom-testing-library
Posts with mentions or reviews of dom-testing-library.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-04-08.
- Buenas prácticas con Angular Testing Library
-
Problems with using `useFakeTimers('modern')` in a create-react-app (CRA) project with Jest 26 and Lodash's `debounce` function
I did some digging and it looks like testing-library/dom-testing-library recommended using jest-environment-jsdom-sixteen in its release notes for v7.0.0 because CRA was using an older version of Jest which provided an older version of jsdom that was missing support for things like MutationObservers and other modern web features. However, eventually CRA was updated to use the newer version of Jest, and this made using jest-environment-jsdom-sixteen unnecessary – and in this case actually harmful as it prevented me from using the new useFakeTimers('modern') functionality. Once I removed the --env=jsdom-sixteen line from the test script in package.json everything started working as I expected.
-
How to test a select element with React Testing Library
"xByRole" is the most "correct" one, but it is also really slow if you're rendering something complex. Just a heads up. See this github issue for more info.
-
Using RTL: getByRole is quite slow on simple tests
https://github.com/testing-library/dom-testing-library/issues/820#issuecomment-726936225
atl-good-testing-practices
Posts with mentions or reviews of atl-good-testing-practices.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-04-08.
What are some alternatives?
When comparing dom-testing-library and atl-good-testing-practices you can also consider the following projects:
em - A beautiful, minimalistic note-taking app for personal sensemaking.
angular-testing-library - 🐙 Simple and complete Angular testing utilities that encourage good testing practices
jest - Delightful JavaScript Testing.
cypress-testing-library - 🐅 Simple and complete custom Cypress commands and utilities that encourage good testing practices.
jest-dom - :owl: Custom jest matchers to test the state of the DOM