Giter Site home page Giter Site logo

Comments (5)

wyze avatar wyze commented on May 31, 2024 1

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.

wyze avatar wyze commented on May 31, 2024 1

Are you interested in a JS X 3 PR?

Sure!

from bs-react-testing-library.

justinba1010 avatar justinba1010 commented on May 31, 2024

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.

justinba1010 avatar justinba1010 commented on May 31, 2024

Closing because this is an erroneous issue.

from bs-react-testing-library.

justinba1010 avatar justinba1010 commented on May 31, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.