build(aio): freeze lockfile when installing example dependencies (#19616)
PR Close #19616
This commit is contained in:
parent
2905069559
commit
6225fedcb8
@ -128,7 +128,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
|
||||
|
@ -194,10 +194,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…
x
Reference in New Issue
Block a user