useButtonChecks error with Jest
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- react-native, typescript
- Domain
- mobile, testing-qa
Research direction
Reproduce the Jest failure while testing a file that uses the
component, then inspect node_modules/@react-native-ama/react-native/dist/hooks/usePressable.js and the referenced @react-native-ama/core package path. Compare the failing subpath import with the package-root import and confirm that the chosen resolution works in the Jest test.Written by the indexing model from the issue text.
Description
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
- Dominant language
- TypeScript
- Stars
- 295
- Forks
- 22
- Avg merge
- 20m
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from FormidableLabs/react-native-ama
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
FormidableLabs/react-native-ama#322 · 3 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
FormidableLabs/react-native-ama#321 · 4 comments ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
FormidableLabs/react-native-ama#319 · 4 comments · 1 reaction ·
-
FormidableLabs/react-native-ama#277 · 1 assignee ·
-
FormidableLabs/react-native-ama#258 · 1 assignee ·
All issues in FormidableLabs/react-native-ama
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
danielmiessler/LifeOS#2218 ·