chore(angular): fix e2e failing tests caused by angular upgrade (#6123)

This commit is contained in:
Miroslav Jonaš 2021-06-25 12:26:27 +02:00 committed by GitHub
parent 28c03a71b1
commit 3c0afc9fdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ describe('Angular Package', () => {
console.log(
`The current es2015 bundle size is ${es2015BundleSize / 1000} KB`
);
expect(es2015BundleSize).toBeLessThanOrEqual(125000);
expect(es2015BundleSize).toBeLessThanOrEqual(160000);
// running tests for the app
expectTestsPass(await runCLIAsync(`test my-dir-${myapp} --no-watch`));

View File

@ -158,7 +158,7 @@ import { names } from '@nrwl/devkit';
const jsonFile = readJson(`dist/libs/${parentLib}/package.json`);
expect(jsonFile.dependencies['tslib']).toEqual('^2.1.0');
expect(jsonFile.dependencies['tslib']).toMatch(/\^2\.\d+\.\d+/); // match any ^2.x.x
expect(jsonFile.peerDependencies[`@${proj}/${childLib}`]).toBeDefined();
expect(
jsonFile.peerDependencies[`@${proj}/${childLib2}`]