Skip to content

Commit 81fbd18

Browse files
rubennortefacebook-github-bot
authored andcommitted
Move remaining Fantom files to react-native-fantom (#48143)
Summary: Pull Request resolved: #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
1 parent 923b194 commit 81fbd18

17 files changed

+5
-6
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,4 @@ vendor/
157157
.circleci/generated_config.yml
158158

159159
# Jest Integration
160-
/jest/integration/build/
160+
/packages/react-native-fantom/build/

jest/integration/config/jest.config.js renamed to packages/react-native-fantom/config/jest.config.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,13 @@ module.exports = {
1717
roots: [
1818
'<rootDir>/packages/react-native',
1919
'<rootDir>/packages/react-native-fantom',
20-
'<rootDir>/jest/integration/runtime',
2120
],
2221
moduleFileExtensions: [...baseConfig.moduleFileExtensions, 'cpp', 'h'],
2322
// This allows running Meta-internal tests with the `-test.fb.js` suffix.
2423
testRegex: '/__tests__/.*-itest(\\.fb)?\\.js$',
2524
testPathIgnorePatterns: baseConfig.testPathIgnorePatterns,
2625
transformIgnorePatterns: ['.*'],
27-
testRunner: './jest/integration/runner/index.js',
28-
watchPathIgnorePatterns: ['<rootDir>/jest/integration/build/'],
29-
globalSetup: './jest/integration/runner/warmup/index.js',
26+
testRunner: '<rootDir>/packages/react-native-fantom/runner/index.js',
27+
watchPathIgnorePatterns: ['<rootDir>/packages/react-native-fantom/build/'],
28+
globalSetup: '<rootDir>/packages/react-native-fantom/runner/warmup/index.js',
3029
};

jest/integration/runner/runner.js renamed to packages/react-native-fantom/runner/runner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ module.exports = async function runTest(
106106
const setupModulePath = path.resolve(__dirname, '../runtime/setup.js');
107107
const featureFlagsModulePath = path.resolve(
108108
__dirname,
109-
'../../../packages/react-native/src/private/featureflags/ReactNativeFeatureFlags.js',
109+
'../../react-native/src/private/featureflags/ReactNativeFeatureFlags.js',
110110
);
111111

112112
const entrypointContents = entrypointTemplate({

0 commit comments

Comments
 (0)