Skip to content

useButtonChecks error with Jest #271

Open
@AlexJackson01

Description

@AlexJackson01

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions