FormidableLabs / FormidableLabs/react-native-ama
useButtonChecks error with Jest
- Langage dominant
- TypeScript
- Étoiles
- 295
- Forks
- 22
- Merge moyen
- 20 min
- PR mergées (30 j)
- 2
Description
### 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
```
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Reproduisez l’échec de Jest lors du test d’un fichier qui utilise le composant , puis examinez node_modules/@react-native-ama/react-native/dist/hooks/usePressable.js et le chemin du package @react-native-ama/core référencé. Comparez l’importation du sous-chemin qui échoue avec l’importation depuis la racine du package et confirmez que la résolution choisie fonctionne dans le test Jest.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- react-native, typescript
- Domaine
- mobile, testing-qa
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 38/100