Skip to content

Commit

Permalink
[jest-expo] Only disable mjs and enable typescript and react
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Jun 16, 2020
1 parent 6af851b commit c88ddbd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/jest-expo/config/getPlatformPreset.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ const expoPreset = require('../jest-preset');
const { withWatchPlugins } = require('./withWatchPlugins');

function getPlatformPreset(displayOptions, extensions) {
const moduleFileExtensions = getManagedExtensions(extensions, { isModern: false });
const moduleFileExtensions = getManagedExtensions(extensions, {
isTS: true,
isReact: true,
isModern: false,
});
console.log('jest-expo', { moduleFileExtensions })
const testMatch = ['', ...extensions].reduce((arr, cur) => {
const platformExtension = cur ? `.${cur}` : '';
const sourceExtension = `.[jt]s?(x)`;
Expand Down

0 comments on commit c88ddbd

Please sign in to comment.