Comments (5)
Here you can see an example of a test working: https://github.com/wyze/reason-calculator/blob/3fc8340b59bbac6cded5d627f945cf2e98d78f86/src/components/__tests__/App_test.re#L57
In your test on your branch, you are firing a click event on the container, not the element being rendered into the container. You need to either select the element or use firstChild
and it should work as expected.
from bs-react-testing-library.
Are you interested in a JS X 3 PR?
Sure!
from bs-react-testing-library.
Ok, I'll see if I can fix that, thank you! Are you interested in a JS X 3 PR?
from bs-react-testing-library.
Closing because this is an erroneous issue.
from bs-react-testing-library.
I can put one up, but we're still figuring out the issue on our side. It seems that 0.5.0 works perfectly well for us. Once we figure it out, I can go ahead and put up a PR for JS X 3, but you're right it doesn't matter if its JS X 2, or 3.
Edit: Also thanks so much for the library, tremendous help for us!
from bs-react-testing-library.
Related Issues (9)
- Simulate.click is not defined HOT 3
- Invitation to move to testing-library org HOT 4
- Move to JS X 3 HOT 3
- How to use findBy* functions? HOT 1
- Error: package bisect_ppx not found or built HOT 2
- How do we add an options object to *ByRole queries? HOT 3
- examples of using debug? HOT 1
- Migrating to the new syntax and @rescript/react
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bs-react-testing-library.