Skip to content

Commit

Permalink
fix(angular): e2e test should correctly fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 committed Nov 24, 2022
1 parent 883b61b commit 5748752
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions e2e/angular-core/src/projects.test.ts
Expand Up @@ -375,6 +375,7 @@ describe('Angular Projects', () => {

try {
process = await runCommandUntil(`serve-ssr ${remoteApp1}`, (output) => {
console.log(output);
return (
output.includes(`Browser application bundle generation complete.`) &&
output.includes(`Server application bundle generation complete.`) &&
Expand All @@ -385,6 +386,7 @@ describe('Angular Projects', () => {
});
} catch (err) {
console.error(err);
throw err;
}

// port and process cleanup
Expand Down
2 changes: 2 additions & 0 deletions packages/angular/src/generators/remote/lib/add-ssr.ts
Expand Up @@ -11,6 +11,7 @@ import type { Schema } from '../schema';
import setupSsr from '../../setup-ssr/setup-ssr';
import {
corsVersion,
expressVersion,
moduleFederationNodeVersion,
} from '../../../utils/versions';

Expand Down Expand Up @@ -49,6 +50,7 @@ export async function addSsr(tree: Tree, options: Schema, appName: string) {
tree,
{
cors: corsVersion,
express: expressVersion,
'@module-federation/node': moduleFederationNodeVersion,
},
{}
Expand Down
1 change: 1 addition & 0 deletions packages/angular/src/utils/versions.ts
Expand Up @@ -11,6 +11,7 @@ export const tsLibVersion = '^2.3.0';

export const ngUniversalVersion = '~15.0.0';
export const corsVersion = '~2.8.5';
export const expressVersion = '~4.18.2';
export const moduleFederationNodeVersion = '~0.9.6';

export const angularEslintVersion = '~15.0.0';
Expand Down

0 comments on commit 5748752

Please sign in to comment.