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-expo] Disable unsupported mjs file extensions #8839

Merged
merged 2 commits into from Jun 19, 2020

Conversation

byCedric
Copy link
Member

@byCedric byCedric commented Jun 16, 2020

Why

This fixes #8809

.mjs isn't (fully) supported yet by babel-jest, see this comment and issue.

How

It passes the isModern: false flag to @expo/config. This should disable all .mjs file extensions from Jest. Once they fully support this, we can update babel-preset-expo and jest-expo.

Test Plan

I can add a test, but because this is a temporary measure I'm not sure if this should be added.

@github-actions
Copy link
Contributor

Native Component List for this branch is ready

@byCedric byCedric force-pushed the @bycedric/jest-expo/disable-mjs branch from c88ddbd to b4c6666 Compare June 16, 2020 15:21
@brentvatne
Copy link
Member

cc @EvanBacon

@EvanBacon
Copy link
Contributor

Hmm, ok. I don't think there is a correct way to do mjs right now anyways.

@EvanBacon EvanBacon merged commit dab6ed6 into master Jun 19, 2020
@EvanBacon EvanBacon deleted the @bycedric/jest-expo/disable-mjs branch June 19, 2020 23:55
tsapeta pushed a commit that referenced this pull request Jun 28, 2020
* [jest-expo] Disable unsupported mjs file extensions

* [jest-expo] Only disable mjs and enable typescript and react
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

Successfully merging this pull request may close these issues.

[jest-expo] mjs files issue with jest-expo/universal preset
3 participants