build(aio): freeze lockfile when installing example dependencies (#19616)
PR Close #19616
This commit is contained in:
parent
437e803f27
commit
ad7e781a18
|
@ -96,7 +96,7 @@ class NgPackagesInstaller {
|
|||
* Yarn will also delete the local marker file for us.
|
||||
*/
|
||||
restoreNpmDependencies() {
|
||||
this._installDeps('--check-files');
|
||||
this._installDeps('--freeze-lockfile', '--check-files');
|
||||
}
|
||||
|
||||
// Protected helpers
|
||||
|
|
|
@ -144,10 +144,10 @@ describe('NgPackagesInstaller', () => {
|
|||
});
|
||||
|
||||
describe('restoreNpmDependencies()', () => {
|
||||
it('should run `yarn install --check-files` in the specified directory', () => {
|
||||
it('should run `yarn install` in the specified directory, with the correct options', () => {
|
||||
spyOn(installer, '_installDeps');
|
||||
installer.restoreNpmDependencies();
|
||||
expect(installer._installDeps).toHaveBeenCalledWith('--check-files');
|
||||
expect(installer._installDeps).toHaveBeenCalledWith('--freeze-lockfile', '--check-files');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue