Not existing `querySelector` in the library and `render` api mismatch
dominikj111 opened this issue · 2 comments
When doing a search of querySelector
function, it looks like it is placed in the result of the render
function.
For example here: https://testing-library.com/docs/queries/about/#manual-queries
But container = render( ...
made the container where querySelector
is not placed, neither in the screen
.
Also render(<Component ...., {container});
and container = render(<Component ...
doesn't have same container api where the first behaviour is not documented.
I'm wondering if this is an issue of the doc or the lib?
Thanks.
Hi, where do you see const container = render(...
?
I can't find it in the docs, but I do see the following which is correct.
For more info about the {container}
syntax see Destructuring assignment
Hi, where do you see
const container = render(...
?
This wasn't right :)
I'm using the library first time, but (probably) that was first think I tried as I came from an Enzyme.
Thanks for the response, I have been able to replace the enzyme with this library. I just don't like the way how the props are updated, but I may do it nor correctly yet.