0

I am using expo so it provides a jest-expo preset. What I want to do is add i18n-js to the transformIgnorePatterns since it seems to have an issue with Jest

  "jest": {
    "preset": "jest-expo",
    "transformIgnorePatterns": [
      "/node_modules/(?!i18n-js)(.*)"
    ]
  },

So I took a variant of Jest gives an error: "SyntaxError: Unexpected token export" to implement the above but now I lose the existing patterns from the preset. Is there a way of just adding another pattern to the preset?

Archimedes Trajano
  • 35,625
  • 19
  • 175
  • 265

0 Answers0