Sentry Transform errors with Jest-Expo SDK 35

Please provide the following:

  1. SDK Version: 35
  2. Platforms(Android/iOS/web/all): All

Since I updated to SDK 35 I’m getting Jest errors:

Jest encountered an unexpected token

({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){export { Severity, Status } from "@sentry/types";

SyntaxError: Unexpected token export

This wasn’t happening with the previous edition of jest-expo and sentry-expo, is anyone else seeing this?

My Jest.config.js

// jest.config.js
module.exports = {
  preset: 'jest-expo',
  coverageThreshold: {
    global: {
      statements: 80,
  collectCoverageFrom: ['<rootDir>/src/**/*.js'],
  projects: [
      name: 'unit',
      setupFiles: ['jest-prop-type-error', './jestSetup.js'],
      testMatch: ['<rootDir>/src/**/*.(test|spec).js'],
      preset: 'jest-expo',
      snapshotSerializers: ['enzyme-to-json/serializer'],
      name: 'lint',
      preset: 'jest-expo',
      runner: 'jest-runner-eslint',
      testMatch: ['<rootDir>/src/**/*.js'],


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.