Make the getTransformCacheKeyFn-test not dependant on the metro version

Reviewed By: davidaurelio

Differential Revision: D6976235

fbshipit-source-id: 8ba5a0413c3c96224a91d6972beda5a413557646
This commit is contained in:
Rafael Oleza 2018-02-16 05:52:38 -08:00 committed by Facebook Github Bot
parent 5b383fce16
commit 29115f729c
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`getTransformCacheKeyFn Should return always the same key for the same params 1`] = `"b9d6b34bd3125bb8f451f229d85c1022861a9b29"`;
exports[`getTransformCacheKeyFn Should return always the same key for the same params 1`] = `"2e1d8fca3846b7b47bd8fb910cc601aa5ebac115"`;

View File

@ -13,6 +13,10 @@
'use strict';
jest.mock('../../../package.json', () => ({
version: '1.0.0',
}));
const getTransformCacheKeyFn = require('../getTransformCacheKeyFn');
const path = require('path');