Skip to content

Commit 2d430b9

Browse files
committed
Add package-lock.json files to user tests
1 parent 2ec4722 commit 2d430b9

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ internal/
7272
yarn.lock
7373
yarn-error.log
7474
.parallelperf.*
75-
tests/cases/user/*/package-lock.json
7675
tests/cases/user/*/node_modules/
7776
tests/cases/user/*/**/*.js
7877
tests/cases/user/*/**/*.js.map

src/testRunner/externalCompileRunner.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ namespace Harness {
6767
cwd = config.path ? path.join(cwd, config.path) : submoduleDir;
6868
}
6969
if (fs.existsSync(path.join(cwd, "package.json"))) {
70-
if (fs.existsSync(path.join(cwd, "package-lock.json"))) {
70+
if (process.env.TRAVIS_EVENT_TYPE === "cron" && fs.existsSync(path.join(cwd, "package-lock.json"))) {
7171
fs.unlinkSync(path.join(cwd, "package-lock.json"));
7272
}
7373
if (fs.existsSync(path.join(cwd, "node_modules"))) {
@@ -337,4 +337,4 @@ ${stderr.replace(/\r\n/g, "\n")}`;
337337
}
338338
return result;
339339
}
340-
}
340+
}

tests/baselines/reference/user/TypeScript-React-Native-Starter.log

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ Standard output:
33
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.
44
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.
55
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'.
6-
node_modules/@types/react/index.d.ts(388,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.
76

87

98

0 commit comments

Comments
 (0)