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 8b4d0c6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions e2e/angular-core/src/projects.test.ts
Expand Up @@ -385,6 +385,7 @@ describe('Angular Projects', () => {
});
} catch (err) {
console.error(err);
throw err;
}

// port and process cleanup
Expand Down
3 changes: 3 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 All @@ -34,6 +35,7 @@ export async function addSsr(tree: Tree, options: Schema, appName: string) {
appName,
tmpl: '',
});
console.log('after generate files');

// update project.json
project = readProjectConfiguration(tree, appName);
Expand All @@ -49,6 +51,7 @@ export async function addSsr(tree: Tree, options: Schema, appName: string) {
tree,
{
cors: corsVersion,
express: expressVersion,
'@module-federation/node': moduleFederationNodeVersion,
},
{}
Expand Down
2 changes: 1 addition & 1 deletion packages/angular/src/generators/remote/remote.spec.ts
Expand Up @@ -199,7 +199,7 @@ describe('MF Remote App Generator', () => {
describe('--ssr', () => {
it('should generate the correct files', async () => {
// ARRANGE
const tree = createTreeWithEmptyWorkspace();
const tree = createTreeWithEmptyWorkspace({ layout: 'apps-libs' });

// ACT
await remote(tree, {
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 8b4d0c6

Please sign in to comment.