JRJurman · @jrjurman
22 followers · 41 posts · Server fosstodon.org

Added tests to Tram-Lite, using ๐ŸŽ‰

In the past, I've usually leaned on and but even for this super simple library, Cypress was easy, incredibly fast, and better reflects the actual behavior of the browser.

I understand for libraries it feels like unit-tests should be the go to, but over time I've realized that e2e forces you to put your library in real scenarios, rather than fake / idealized scenarios that might not happen.

#e2e #cypress #jest #testinglibrary #tramlite #webdev #testing

Last updated 1 year ago

Shini92 :ablobblewobble: · @Shini92
178 followers · 952 posts · Server mas.to

Thanks to azat-io to provide support for and ๐Ÿš€

All available now in v1.20.0

github.com/Shinigami92/eslint-

#testinglibrary #jsxa11y #reacthooks #react #Vitest

Last updated 1 year ago

@deutrino
@peyremorgan the best thing to do is to have tests which use the features to verify functionality.

See: testing-library.com/docs/cypre

You don't get to see your page, but then neither do your sightless users.

Best of all, you can run them automatically everytime you make a change to quickly confirm you are still complying!

#testinglibrary #cypress #accessibility #e2e

Last updated 1 year ago

Elwin van Eede · @elwinvaneede
105 followers · 111 posts · Server mas.to

Itโ€™s so nice that Playwright has Testing Library style locators that actually work with Shadow DOM. One of the defining factors for us to choose Playwright over Cypress (the other being performance).

#shadowdom #webcomponents #testinglibrary #playwright

Last updated 2 years ago

Ian VS · @IanVS
284 followers · 415 posts · Server fosstodon.org

@SaragossaManuscript One of the things that helped me learn was testing my components (and forms, and pages) in using : storybook.js.org/blog/test-com.

In order to test effectively, I needed to be sure to associate components together properly and use the correct roles, etc. I got good components, good tests, good documentation, and learned all at the same time. win win win win. :)

#accessibility #storybook #testinglibrary #a11y

Last updated 2 years ago

Fesh · @gonzofish
9 followers · 42 posts · Server fosstodon.org