You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[BUG] Cannot find module '@chakra-ui/utils/context' from 'node_modules/@chakra-ui/react/dist/cjs/checkbox/checkbox-context.cjs' when running unit tests
#2113
Open
axciccu opened this issue
Nov 5, 2024
· 2 comments
I also ran into this issue @axciccu , I believe the recent @chakra-ui releases has changed their package dist directory structure which is a breaking change and that surprised me. I pinned @chakra-ui/[email protected] and that fixes the issue.
Summary
Not able to run unit tests
Steps To Reproduce
Install the last version
npx '@salesforce/pwa-kit-create-app@latest' --preset retail-react-app-demo
install the dependencies
npm install
add the unit test for the my-new-route component importing renderWithProviders from test-utils
and run the tests
npm run test
Expected result
The test should run
Actual result
The test suite fails to run
The text was updated successfully, but these errors were encountered: