Merge pull request #30773 from Microsoft/update-user-tests
Update TypeScript-React-Native-Starter
This commit is contained in:
commit
9e2446073d
3 changed files with 8 additions and 6 deletions
|
@ -10,6 +10,7 @@ interface ExecResult {
|
|||
|
||||
interface UserConfig {
|
||||
types: string[];
|
||||
path?: string;
|
||||
}
|
||||
|
||||
abstract class ExternalCompileRunnerBase extends RunnerBase {
|
||||
|
@ -57,7 +58,7 @@ abstract class ExternalCompileRunnerBase extends RunnerBase {
|
|||
ts.Debug.assert(!!config.types, "Bad format from test.json: Types field must be present.");
|
||||
types = config.types;
|
||||
|
||||
cwd = submoduleDir;
|
||||
cwd = config.path ? path.join(cwd, config.path) : submoduleDir;
|
||||
}
|
||||
if (fs.existsSync(path.join(cwd, "package.json"))) {
|
||||
if (fs.existsSync(path.join(cwd, "package-lock.json"))) {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
Exit Code: 1
|
||||
Standard output:
|
||||
node_modules/@types/node/globals.d.ts(163,13): error TS2451: Cannot redeclare block-scoped variable 'global'.
|
||||
node_modules/@types/node/globals.d.ts(217,13): error TS2300: Duplicate identifier 'require'.
|
||||
node_modules/@types/react-native/index.d.ts(8958,11): error TS2451: Cannot redeclare block-scoped variable 'global'.
|
||||
node_modules/@types/react-native/index.d.ts(8959,14): error TS2300: Duplicate identifier 'require'.
|
||||
node_modules/@types/react-native/index.d.ts(3425,42): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
|
||||
node_modules/@types/react-native/index.d.ts(3438,42): error TS2583: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
|
||||
node_modules/@types/react-native/index.d.ts(8745,18): error TS2717: Subsequent property declarations must have the same type. Property 'geolocation' must be of type 'Geolocation', but here has type 'GeolocationStatic'.
|
||||
node_modules/@types/react/index.d.ts(379,23): error TS2583: Cannot find name 'Set'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later.
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{
|
||||
"types": ["jest"]
|
||||
"types": ["jest"],
|
||||
"path": "TypeScript-React-Native-Starter/ExampleProject"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue