Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jest gets confused by Shoutem again even with transformIgnorePatterns #362

Closed
archywillhe opened this issue Jan 24, 2018 · 3 comments
Closed

Comments

@archywillhe
Copy link

Got the same error with jest as #151

So I applied the transformIgnorePatterns approach and got rid of the import error for shoutem. But now I got

 Unexpected token import

for stuff in expo. I tried adding expo in the transformIgnorePatterns:

  "jest": {
    "preset": "jest-expo",
    "transformIgnorePatterns": [
          "node_modules/(?!react-native|expo|@expo|react-navigation|native-base-shoutem-theme|@shoutem/theme|@shoutem/animation|@shoutem/ui|tcomb-form-native)"
    ]
  },

and now it gave me Invalid or unexpected token for stuff inside @expo

I'm running yarn 1.3.2, create-react-native-app 1.1.0.

Anyone managed to get shoutem properly integrated into an expo project?

@brentvatne
Copy link
Contributor

if you're using expo, try updating to jest-expo@25.1.0-beta.0.

@Definitely-Not-Vlad
Copy link
Collaborator

@archywilhes Did Brent's suggestion help? Let me know so we can look into the issue, or close this issue if Brent's suggestion resolves it.

@Definitely-Not-Vlad
Copy link
Collaborator

Closing due to inactivity. Prompt for reopen if Brent's suggestion or new releases haven't resolved the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants