DEV Community 👩‍💻👨‍💻

Discussion on: Why testing-library fails to do what it set out to do

Collapse
rangeoshun profile image
Abel Varga Author

Thanks for noting the typo, fixed it.

On the matter of RTL, I'm not sure if it's unavoidable. If you maintain a Storybook, you could do a lot of your unit tests there, with puppeteer, you need to assert your expectations in your E2E framework.

There are cases where I cannot imagine using a browser with current tooling but could imagine tooling that would allow. Like mocking global variables like location and etc.

So in short TDD does not say anything about the environment you run it in IMHO.