diff --git a/packages/react-native/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js b/packages/react-native/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js new file mode 100644 index 00000000000000..1b6cf0b1be8862 --- /dev/null +++ b/packages/react-native/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js @@ -0,0 +1,5 @@ +'use strict'; + +const RefreshControlMock = () => null; + +module.exports = RefreshControlMock; diff --git a/packages/react-native/scripts/codegen/__tests__/__snapshots__/generate-artifacts-executor-test.js.snap b/packages/react-native/scripts/codegen/__tests__/__snapshots__/generate-artifacts-executor-test.js.snap index 48482e5b4049c3..f8f1a2cd7d159a 100644 --- a/packages/react-native/scripts/codegen/__tests__/__snapshots__/generate-artifacts-executor-test.js.snap +++ b/packages/react-native/scripts/codegen/__tests__/__snapshots__/generate-artifacts-executor-test.js.snap @@ -488,7 +488,7 @@ pushd \\"$PODS_ROOT/../\\" > /dev/null RCT_SCRIPT_POD_INSTALLATION_ROOT=$(pwd) popd >/dev/null -export RCT_SCRIPT_RN_DIR=\\"$RCT_SCRIPT_POD_INSTALLATION_ROOT/../../../../..\\" +export RCT_SCRIPT_RN_DIR=\\"$RCT_SCRIPT_POD_INSTALLATION_ROOT/..\\\\..\\\\..\\\\..\\\\..\\" export RCT_SCRIPT_APP_PATH=\\"$RCT_SCRIPT_POD_INSTALLATION_ROOT/..\\" export RCT_SCRIPT_OUTPUT_DIR=\\"$RCT_SCRIPT_POD_INSTALLATION_ROOT\\" export RCT_SCRIPT_TYPE=\\"withCodegenDiscovery\\" @@ -963,7 +963,7 @@ pushd \\"$PODS_ROOT/../\\" > /dev/null RCT_SCRIPT_POD_INSTALLATION_ROOT=$(pwd) popd >/dev/null -export RCT_SCRIPT_RN_DIR=\\"$RCT_SCRIPT_POD_INSTALLATION_ROOT/../../../../..\\" +export RCT_SCRIPT_RN_DIR=\\"$RCT_SCRIPT_POD_INSTALLATION_ROOT/..\\\\..\\\\..\\\\..\\\\..\\" export RCT_SCRIPT_APP_PATH=\\"$RCT_SCRIPT_POD_INSTALLATION_ROOT/..\\" export RCT_SCRIPT_OUTPUT_DIR=\\"$RCT_SCRIPT_POD_INSTALLATION_ROOT\\" export RCT_SCRIPT_TYPE=\\"withCodegenDiscovery\\" diff --git a/scripts/build-types/transforms/__tests__/resolveCyclicImportsInDefinition-test.js b/scripts/build-types/transforms/__tests__/resolveCyclicImportsInDefinition-test.js index 34cbaececf72ed..c76b8cef60fcf2 100644 --- a/scripts/build-types/transforms/__tests__/resolveCyclicImportsInDefinition-test.js +++ b/scripts/build-types/transforms/__tests__/resolveCyclicImportsInDefinition-test.js @@ -1,13 +1,3 @@ -/** - * 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. - * - * @flow strict-local - * @format - */ - const resolveCyclicImportsInDefinition = require('../resolveCyclicImportsInDefinition.js'); const path = require('path'); @@ -31,8 +21,8 @@ describe('resolveCyclicImportsInDefinition', () => { }); expect(result).toMatchInlineSnapshot(` - "import type { Test1 } from \\"../package1\\"; - import type { Test2 } from \\"../package2\\";" + "import type { Test1 } from \\"..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\path\\\\\\\\to\\\\\\\\package\\\\\\\\definition\\\\\\\\files\\\\\\\\package1\\"; + import type { Test2 } from \\"..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\path\\\\\\\\to\\\\\\\\package\\\\\\\\definition\\\\\\\\files\\\\\\\\package2\\";" `); }); @@ -48,8 +38,8 @@ describe('resolveCyclicImportsInDefinition', () => { }); expect(result).toMatchInlineSnapshot(` - "import type { Test1 } from \\"../package1/Test1\\"; - import type { Test2 } from \\"../package2/Test2\\";" + "import type { Test1 } from \\"..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\path\\\\\\\\to\\\\\\\\package\\\\\\\\definition\\\\\\\\files\\\\\\\\package1/Test1\\"; + import type { Test2 } from \\"..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\path\\\\\\\\to\\\\\\\\package\\\\\\\\definition\\\\\\\\files\\\\\\\\package2/Test2\\";" `); }); @@ -65,8 +55,8 @@ describe('resolveCyclicImportsInDefinition', () => { }); expect(result).toMatchInlineSnapshot(` - "import { Test1 } from \\"../package1\\"; - import { Test2 } from \\"../package2\\";" + "import { Test1 } from \\"..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\path\\\\\\\\to\\\\\\\\package\\\\\\\\definition\\\\\\\\files\\\\\\\\package1\\"; + import { Test2 } from \\"..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\path\\\\\\\\to\\\\\\\\package\\\\\\\\definition\\\\\\\\files\\\\\\\\package2\\";" `); }); @@ -82,8 +72,8 @@ describe('resolveCyclicImportsInDefinition', () => { }); expect(result).toMatchInlineSnapshot(` - "import { Test1 } from \\"../package1/Test1\\"; - import { Test2 } from \\"../package2/Test2\\";" + "import { Test1 } from \\"..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\path\\\\\\\\to\\\\\\\\package\\\\\\\\definition\\\\\\\\files\\\\\\\\package1/Test1\\"; + import { Test2 } from \\"..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\path\\\\\\\\to\\\\\\\\package\\\\\\\\definition\\\\\\\\files\\\\\\\\package2/Test2\\";" `); }); @@ -99,8 +89,8 @@ describe('resolveCyclicImportsInDefinition', () => { }); expect(result).toMatchInlineSnapshot(` - "import Test1 from \\"../package1\\"; - import Test2 from \\"../package2\\";" + "import Test1 from \\"..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\path\\\\\\\\to\\\\\\\\package\\\\\\\\definition\\\\\\\\files\\\\\\\\package1\\"; + import Test2 from \\"..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\path\\\\\\\\to\\\\\\\\package\\\\\\\\definition\\\\\\\\files\\\\\\\\package2\\";" `); }); @@ -116,8 +106,8 @@ describe('resolveCyclicImportsInDefinition', () => { }); expect(result).toMatchInlineSnapshot(` - "import Test1 from \\"../package1/Test1\\"; - import Test2 from \\"../package2/Test2\\";" + "import Test1 from \\"..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\path\\\\\\\\to\\\\\\\\package\\\\\\\\definition\\\\\\\\files\\\\\\\\package1/Test1\\"; + import Test2 from \\"..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\path\\\\\\\\to\\\\\\\\package\\\\\\\\definition\\\\\\\\files\\\\\\\\package2/Test2\\";" `); }); @@ -140,8 +130,8 @@ describe('resolveCyclicImportsInDefinition', () => { }); expect(result).toMatchInlineSnapshot(` - "import { Test1 } from \\"../../../../package1/Test1\\"; - import { Test2 } from \\"../../../../package2/Test2\\";" + "import { Test1 } from \\"..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\path\\\\\\\\to\\\\\\\\package\\\\\\\\definition\\\\\\\\files\\\\\\\\package1/Test1\\"; + import { Test2 } from \\"..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\path\\\\\\\\to\\\\\\\\package\\\\\\\\definition\\\\\\\\files\\\\\\\\package2/Test2\\";" `); }); @@ -158,9 +148,9 @@ describe('resolveCyclicImportsInDefinition', () => { }); expect(result).toMatchInlineSnapshot(` - "export { Test1 } from \\"../package1/Test1\\"; - export { Test2 } from \\"../package2/Test2\\"; - export { default as Test3 } from \\"../package1\\";" + "export { Test1 } from \\"..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\path\\\\\\\\to\\\\\\\\package\\\\\\\\definition\\\\\\\\files\\\\\\\\package1/Test1\\"; + export { Test2 } from \\"..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\path\\\\\\\\to\\\\\\\\package\\\\\\\\definition\\\\\\\\files\\\\\\\\package2/Test2\\"; + export { default as Test3 } from \\"..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\..\\\\\\\\path\\\\\\\\to\\\\\\\\package\\\\\\\\definition\\\\\\\\files\\\\\\\\package1\\";" `); }); });