Skip to content

Commit 2e8052f

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

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-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: 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/webpack.log

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ lib/dependencies/HarmonyImportDependency.js(195,37): error TS2341: Property 'mod
1515
lib/dependencies/HarmonyImportDependency.js(197,36): error TS2341: Property 'moduleGraph' is private and only accessible within class 'ChunkGraph'.
1616
lib/dependencies/HarmonyImportDependency.js(203,19): error TS2341: Property 'moduleGraph' is private and only accessible within class 'ChunkGraph'.
1717
lib/dependencies/HarmonyImportSpecifierDependency.js(167,34): error TS2341: Property 'moduleGraph' is private and only accessible within class 'ChunkGraph'.
18+
lib/wasm-async/AsyncWebAssemblyParser.js(9,28): error TS2307: Cannot find module '@webassemblyjs/wasm-parser'.
1819
lib/wasm/WasmChunkLoadingRuntimeModule.js(44,33): error TS2341: Property 'moduleGraph' is private and only accessible within class 'ChunkGraph'.
20+
lib/wasm/WebAssemblyGenerator.js(17,28): error TS2307: Cannot find module '@webassemblyjs/wasm-parser'.
21+
lib/wasm/WebAssemblyParser.js(12,28): error TS2307: Cannot find module '@webassemblyjs/wasm-parser'.
1922

2023

2124

0 commit comments

Comments
 (0)