Relocate __typetests__ directory, format (#57367)

Summary:
Pull Request resolved: https://github.com/react/react-native/pull/57367

Places this one folder up, in a location that will be preserved when we later delete the manual `types/` dir. These tests already apply to both the `types/Libraries` dirs and the generated `types_generated/`.

Changelog: [Internal]

___

Differential Revision: D110055787

fbshipit-source-id: 5ff190d301628877c9bda57c92b1af1a2917f1ca
This commit is contained in:
Alex Hunt authored and meta-codesync[bot] committed 2026-06-29 08:06:24 -07:00
1 parent 5574d946ad
commit 3fcde34a36
10 files changed
+11 -9

No files matched your search

@@ -3,20 +3,21 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import { TurboModule, TurboModuleRegistry } from 'react-native';
'use strict';
import {TurboModule, TurboModuleRegistry} from 'react-native';
export interface SomeConstants {
x: string;
y: number;
z: boolean;
x: string;
y: number;
z: boolean;
}
export interface SampleSpec extends TurboModule {
getConstants(): SomeConstants
doSomething(): void;
getConstants(): SomeConstants;
doSomething(): void;
}
export default TurboModuleRegistry.getEnforcing<SampleSpec>('Sample');
+2 -1
View File
@@ -12,5 +12,6 @@
"noEmit": true,
"forceConsistentCasingInFileNames": true,
"paths": {"react-native": ["."]}
}
},
"include": ["**/*.d.ts", "../__typetests__/**/*"]
}
@@ -13,5 +13,5 @@
"moduleResolution": "bundler",
"customConditions": ["react-native-strict-api"]
},
"include": ["**/*.d.ts", "../types/__typetests__/**/*"]
"include": ["**/*.d.ts", "../__typetests__/**/*"]
}