Closed 3210jr closed 1 year ago
Adding react-native-ui-lib to the transformIgnorePatterns
fixes this issue. Which is great but now facing another issue:
/path/to/app/node_modules/react-native-ui-lib/src/style/index.js:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){export { default as Colors } from "./colors";
^^^^^^
SyntaxError: Unexpected token 'export'
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description
When running jest tests for my components with @testing-library/react-native and jest, I get the error:
For seemingly any imported components from "react-native-ui-lib"
Related to
Steps to reproduce
import { View, Button, TextField } from "react-native-ui-lib"
yarn test
or whichever command is set up for running jestExpected behavior
I expected that the test would run and either fail or pass
Actual behavior
Instead I just get the above mentioned error
More Info
Screenshots/Video
Environment
Affected platforms
Thanks for all the work you all have put into the library!