Skip to content

Commit 9454e10

Browse files
committed
Add package-lock.json files to user tests
1 parent d3855d6 commit 9454e10

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ abstract class ExternalCompileRunnerBase extends RunnerBase {
6666
cwd = config.path ? path.join(cwd, config.path) : submoduleDir;
6767
}
6868
if (fs.existsSync(path.join(cwd, "package.json"))) {
69-
if (fs.existsSync(path.join(cwd, "package-lock.json"))) {
69+
if (process.env.TRAVIS_EVENT_TYPE === "cron" && fs.existsSync(path.join(cwd, "package-lock.json"))) {
7070
fs.unlinkSync(path.join(cwd, "package-lock.json"));
7171
}
7272
if (fs.existsSync(path.join(cwd, "node_modules"))) {

tests/baselines/reference/user/create-react-app.log

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Exit Code: 1
22
Standard output:
3-
test/fixtures/issue-5176-flow-class-properties/src/App.js(5,8): error TS8010: 'types' can only be used in a .ts file.
3+
test/fixtures/issue-5176-flow-class-properties/src/App.js(5,8): error TS8010: Type annotations can only be used in TypeScript files.
44
test/fixtures/issue-5176-flow-class-properties/src/App.js(5,13): error TS1005: ';' expected.
55
test/fixtures/webpack-message-formatting/src/AppBabel.js(6,8): error TS17008: JSX element 'div' has no corresponding closing tag.
66
test/fixtures/webpack-message-formatting/src/AppBabel.js(8,7): error TS17002: Expected corresponding JSX closing tag for 'span'.

tests/baselines/reference/user/npm.log

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,14 @@ node_modules/npm/lib/whoami.js(18,18): error TS2339: Property 'config' does not
925925
node_modules/npm/lib/whoami.js(24,18): error TS2339: Property 'registry' does not exist on type 'typeof EventEmitter'.
926926
node_modules/npm/lib/whoami.js(30,26): error TS2339: Property 'code' does not exist on type 'Error'.
927927
node_modules/npm/lib/whoami.js(45,12): error TS2339: Property 'code' does not exist on type 'Error'.
928+
node_modules/npm/scripts/index-build.js(20,13): error TS2531: Object is possibly 'null'.
929+
node_modules/npm/scripts/index-build.js(20,22): error TS2531: Object is possibly 'null'.
930+
node_modules/npm/scripts/index-build.js(21,30): error TS2531: Object is possibly 'null'.
931+
node_modules/npm/scripts/index-build.js(22,29): error TS2531: Object is possibly 'null'.
932+
node_modules/npm/scripts/index-build.js(23,15): error TS2531: Object is possibly 'null'.
933+
node_modules/npm/scripts/index-build.js(23,22): error TS2531: Object is possibly 'null'.
934+
node_modules/npm/scripts/index-build.js(24,15): error TS2531: Object is possibly 'null'.
935+
node_modules/npm/scripts/index-build.js(24,22): error TS2531: Object is possibly 'null'.
928936
node_modules/npm/scripts/publish-tag.js(2,36): error TS2732: Cannot find module '../package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension
929937
node_modules/npm/test/broken-under-nyc-and-travis/lifecycle-path.js(7,20): error TS2307: Cannot find module 'tap'.
930938
node_modules/npm/test/broken-under-nyc-and-travis/lifecycle-path.js(18,23): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.

0 commit comments

Comments
 (0)