mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48143 Changelog: [internal] Just a small cleanup to move `jest/integration/*` to `packages/react-native-fantom`, so everything related to Fantom (config, runner, runtime, etc.) is in the same directory. Reviewed By: javache Differential Revision: D66874763 fbshipit-source-id: 8b87d7320c7704f7ce6cd58761508193784f5ce2
31 lines
608 B
JavaScript
31 lines
608 B
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
const crypto = require('crypto');
|
|
const fs = require('fs');
|
|
|
|
module.exports = {
|
|
getHasteName(filePath) {
|
|
if (filePath.endsWith('ReactNativeInternalFeatureFlags.js')) {
|
|
return 'ReactNativeInternalFeatureFlags';
|
|
}
|
|
|
|
return null;
|
|
},
|
|
|
|
getCacheKey() {
|
|
return crypto
|
|
.createHash('sha1')
|
|
.update(fs.readFileSync(__filename))
|
|
.digest('hex');
|
|
},
|
|
};
|