Skip to content

Commit d89333c

Browse files
committed
fix: ignore yarn.lock files in test runs
The lockfile was mispelled as `yarn-lock.json`, when `yarn` actually uses `yarn.lock` files. We can just ignore them altogether with the `--no-lockfile` flag.
1 parent cf7788f commit d89333c

File tree

6 files changed

+3
-16846
lines changed

6 files changed

+3
-16846
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ pids
2525
*.pid.lock
2626

2727
package-lock.json
28+
29+
/e2e/__projects__/*/yarn.lock

e2e/__projects__/babel-in-package/yarn.lock

-4,027
This file was deleted.

e2e/__projects__/basic/yarn.lock

-4,138
This file was deleted.

e2e/__projects__/custom-transformers/yarn.lock

-4,312
This file was deleted.

e2e/__projects__/style/yarn.lock

-4,365
This file was deleted.

e2e/test-runner.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,8 @@ function runTest(dir) {
4040
log('Removing node_modules')
4141
fs.removeSync(`${resolvedPath}/node_modules`)
4242

43-
log('Removing yarn-lock.json')
44-
fs.removeSync(`${resolvedPath}/yarn-lock.json`)
45-
4643
log('Installing node_modules')
47-
run('yarn install --silent')
44+
run('yarn install --silent --no-lockfile')
4845
}
4946

5047
// For tests that need vue-jest to successfully `require.resolve()` a file in

0 commit comments

Comments
 (0)