Skip to content

Commit

Permalink
chore(angular): fix e2e failing tests caused by angular upgrade (#6123)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav authored Jun 25, 2021
1 parent 28c03a7 commit 3c0afc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e2e/angular/src/angular-core.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`));
Expand Down
2 changes: 1 addition & 1 deletion e2e/angular/src/angular-library.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`]
Expand Down

0 comments on commit 3c0afc9

Please sign in to comment.