DEV Community

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

 
vonheikemen profile image
Heiker

Does it allow to run @testing-library/react based tests in Puppeteer?

No. pptr-testing-library was made to control puppeteer. So, technically puppeteer will render your app, then you use pptr-testing-library to query and manipulate the DOM (just like you would with react-testing-library).

Thread Thread
 
rangeoshun profile image
Abel Varga

Thanks! That's what I thought. What I would like ultimately, is my unit-tests to run in an actual browser.