Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useButtonChecks error with Jest #271

Open
2 tasks done
AlexJackson01 opened this issue Oct 21, 2024 · 0 comments
Open
2 tasks done

useButtonChecks error with Jest #271

AlexJackson01 opened this issue Oct 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@AlexJackson01
Copy link

AlexJackson01 commented Oct 21, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

Code Sandbox link

No response

Bug report

When I'm testing a file using your <Form /> component, I'm getting:

Cannot find module '@react-native-ama/core/src/hooks/useButtonChecks' from 'node_modules/@react-native-ama/react-native/dist/hooks/usePressable.js'

This seems to relate to this line in `usePressable.js`

`const useButtonChecks_1 = require("@react-native-ama/core/src/hooks/useButtonChecks");`

My Jest tests seem to pass when the filepath is changed, e.g. to

`const useButtonChecks_1 = require("@react-native-ama/core/");`

Could you have a look please
@AlexJackson01 AlexJackson01 added the bug Something isn't working label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant