FormidableLabs / FormidableLabs/react-native-ama

useButtonChecks error with Jest

Offen
#271 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
TypeScript
Sterne
295
Forks
22
Ø Merge
20 Min.
Gemergte PRs (30 T.)
2

Beschreibung

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

### Code Sandbox link

_No response_

### Bug report

```markdown
When I'm testing a file using your 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
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.