Skip to content

Commit

Permalink
[jest-expo] fix jest-preset mutating react-native preset (#9051)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-fournier committed Dec 3, 2020
1 parent 588113e commit c0c386e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/jest-expo/jest-preset.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
'use strict';

const cloneDeep = require('lodash/cloneDeep');
const isEqual = require('lodash/isEqual');
// Derive the Expo Jest preset from the React Native one
const jestPreset = require('react-native/jest-preset');
const jestPreset = cloneDeep(require('react-native/jest-preset'));

// transform
if (!jestPreset.transform) {
Expand Down

0 comments on commit c0c386e

Please sign in to comment.