test(ngcc): verify that `PackageJsonUpdater` does not write to files from worker processes (#34870)

PR Close #34870
This commit is contained in:
George Kalpakas 2020-01-21 15:08:27 +02:00 committed by Andrew Kushnir
parent 68025ce09a
commit 43db4ffcd6
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ runInEachFileSystem(() => {
describe('(on cluster worker)', () => { describe('(on cluster worker)', () => {
beforeEach(() => runAsClusterMaster(false)); beforeEach(() => runAsClusterMaster(false));
afterEach(() => expect(delegate.writeChanges).not.toHaveBeenCalled());
it('should send an `update-package-json` message to the master process', () => { it('should send an `update-package-json` message to the master process', () => {
const jsonPath = _('/foo/package.json'); const jsonPath = _('/foo/package.json');