React-Native / Jest / Convex-test setup issue
Setting up convex-test (0.0.35) in a near fresh RN Expo sdk 52 app
Basic test file
I receive an error when running the expo default
npm run test
command: SyntaxError: Cannot use import statement outside a module7 Replies
@Riki Know if this is a regression?
I don’t know, but good idea to jnow. I will do a manual bisect with different versions and let you know
@Riki good enough to know if it's every worked, but a bisect would be a dream
Hey @Tom it's strange but after investigation whenever I reinstall whatever version of convex-test, I get this error still
I tried a bunch of things like having
convex-text
added within the jest config field in my package.json as per recommended by the expo team:
https://docs.expo.dev/develop/unit-testing/#additional-configuration-for-using-transformignorepatterns
But I still get a similar error.Expo Documentation
Unit testing with Jest
Learn how to set up and configure the jest-expo library to write unit and snapshot tests for a project with Jest.
@Pierre it looks like convex-test doesn't work with Jest, just with vitest