-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): remove node_modules post-validation (#4913)
The removal of node_modules was happening in a race with the loading of the virtualTree, and before the validation of the package-lock against the package.json. This defers the removal till after all that validation has happened. It also makes the errors thrown usage errors, and refactors the tests to be real.
- Loading branch information
Showing
8 changed files
with
219 additions
and
336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,10 +43,24 @@ npm {CWD} | |
` | ||
|
||
exports[`test/index.js TAP npm ci > should throw mismatch deps in lock file error 1`] = ` | ||
npm ERR! code EUSAGE | ||
npm ERR! | ||
npm ERR! \`npm ci\` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with \`npm install\` before continuing. | ||
npm ERR! | ||
npm ERR! Invalid: lock file's [email protected] does not satisfy [email protected] | ||
npm ERR! | ||
npm ERR! Clean install a project | ||
npm ERR! | ||
npm ERR! Usage: | ||
npm ERR! npm ci | ||
npm ERR! | ||
npm ERR! Options: | ||
npm ERR! [--no-audit] [--foreground-scripts] [--ignore-scripts] | ||
npm ERR! [--script-shell <script-shell>] | ||
npm ERR! | ||
npm ERR! aliases: clean-install, ic, install-clean, isntall-clean | ||
npm ERR! | ||
npm ERR! Run "npm help ci" for more info | ||
npm ERR! A complete log of this run can be found in: | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.