PierreP
Convex Community12mo ago
7 replies
Pierre

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
import { describe, expect, test } from '@jest/globals'
import { convexTest } from 'convex-test'
import schema from './schema'

describe('foo', () => {
  test('foo', async () => {
    const t = convexTest(schema)
    expect(true).toBe(true)
  })
})


I receive an error when running the expo default npm run test command: SyntaxError: Cannot use import statement outside a module
image.png
Was this page helpful?