Please provide the following:
- SDK Version: 4.13.0
- Platforms(Android/iOS/web/all): All
- Add the appropriate “Tag” based on what Expo library you have a question on.
I’m trying to create a mock class in Jest for expo-sqlite so that I can test that my application business logic returns the correct value when given input from my database. However, despite me configuring Jest with “transformIgnorePatterns: [“node_modules/(?!(react-native|react-native-cookies)/)”]”, Jest complains:
"SyntaxError: Unexpected token ‘export’
1 | > 2 | const sqlite = jest.createMockFromModule("expo-sqlite"); | ^ 3 | const userQuery = "SELECT * FROM ZUSERENTITY"; 4 | const placeQuery = "SELECT * FROM ZPLACEENTITY WHERE ZUSER="; 5 | export class MockResultSet"
How do I resolve this issue?