Git Product home page Git Product logo

Comments (6)

hoshinaoshi avatar hoshinaoshi commented on August 15, 2024 1

@TheAlmightyBob
Thank you for your answer. and I solved it.🙇

@sabbir0179

I made two mistakes.

  1. Optional entry point when running the test
    Expo specifies the entry point of the app because it is App.js.
    Also, the test file will be App.test.js.

  2. How to write App.test.js.
    Initially I thought I would export App.js and use it in App.test.js.
    But it wasn't.
    App.test.js simply wrapped the render part of App.js in a Tester component.

Here is the working code.
https://github.com/hoshinaoshi/cavyTest

from cavy-cli.

TheAlmightyBob avatar TheAlmightyBob commented on August 15, 2024

@sabbir0179 Assuming your index.test.js file is correctly configured to run the tests, did you reload the React Native app? When using the --skipbuild option, the tests won't automatically run until you manually trigger a reload.

from cavy-cli.

hoshinaoshi avatar hoshinaoshi commented on August 15, 2024

@TheAlmightyBob
I have the same problem.
The detailed situation is like this.
pixielabs/cavy#195 (comment)

the tests won't automatically run until you manually trigger a reload.

How do you do this?
Run from CLI? or is it the Command + D in the React Native App?

from cavy-cli.

TheAlmightyBob avatar TheAlmightyBob commented on August 15, 2024

@hoshinaoshi cmd+D or cmd+R (or for Android emulator RR or cmd+M)

This isn't necessary if you don't use --skipbuild, since building/running will start the tests, but using --skipbuild just puts Cavy CLI in a passive mode listening for test results.

from cavy-cli.

AbigailMcP avatar AbigailMcP commented on August 15, 2024

Glad you got this sorted @hoshinaoshi :) and thanks for helping @TheAlmightyBob !

@hoshinaoshi - are there any parts of the documentation you think could be improved? I'm thinking a page specifically for Expo set up... we have a Custom Entry Point Guide but maybe this is too hidden away.

from cavy-cli.

AbigailMcP avatar AbigailMcP commented on August 15, 2024

@sabbir0179 - I'm closing this issue for now but please let me know whether you're still having trouble and I'll reopen.

from cavy-cli.

Related Issues (20)

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.