Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/mfe1/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Component } from '@angular/core';
selector: 'angular-architects-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
standalone: false,
})
export class AppComponent {
title = 'mfe1';
Expand Down
4 changes: 3 additions & 1 deletion apps/mfe1/src/app/demo/demo.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ describe('DemoComponent', () => {
let fixture: ComponentFixture<DemoComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({}).compileComponents();
await TestBed.configureTestingModule({
imports: [DemoComponent],
}).compileComponents();

fixture = TestBed.createComponent(DemoComponent);
component = fixture.componentInstance;
Expand Down
1 change: 1 addition & 0 deletions apps/mfe1/src/app/nx-welcome.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,7 @@ nx affected:e2e</pre>
`,
styles: [],
encapsulation: ViewEncapsulation.None,
standalone: false,
})
export class NxWelcomeComponent implements OnInit {
constructor() {}
Expand Down
3 changes: 2 additions & 1 deletion apps/mfe1/src/test-setup.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
import 'jest-preset-angular/setup-jest';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';
setupZoneTestEnv();
1 change: 1 addition & 0 deletions apps/mfe2/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Component } from '@angular/core';
selector: 'angular-architects-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
standalone: false,
})
export class AppComponent {
title = 'mfe2';
Expand Down
1 change: 1 addition & 0 deletions apps/mfe2/src/app/nx-welcome.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,7 @@ nx affected:e2e</pre>
`,
styles: [],
encapsulation: ViewEncapsulation.None,
standalone: false,
})
export class NxWelcomeComponent implements OnInit {
constructor() {}
Expand Down
3 changes: 2 additions & 1 deletion apps/mfe2/src/test-setup.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
import 'jest-preset-angular/setup-jest';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';
setupZoneTestEnv();
1 change: 1 addition & 0 deletions apps/playground/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Component, Type } from '@angular/core';
selector: 'angular-architects-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
standalone: false,
})
export class AppComponent {
title = 'playground';
Expand Down
3 changes: 2 additions & 1 deletion apps/playground/src/test-setup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'jest-preset-angular/setup-jest';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';
setupZoneTestEnv();

import { getTestBed } from '@angular/core/testing';
import {
Expand Down
3 changes: 2 additions & 1 deletion libs/mf-runtime/src/test-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ globalThis.ngJest = {
errorOnUnknownProperties: true,
},
};
import 'jest-preset-angular/setup-jest';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';
setupZoneTestEnv();
3 changes: 2 additions & 1 deletion libs/mf-tools/src/test-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ globalThis.ngJest = {
errorOnUnknownProperties: true,
},
};
import 'jest-preset-angular/setup-jest';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';
setupZoneTestEnv();
3 changes: 2 additions & 1 deletion libs/native-federation-runtime/src/lib/test-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ globalThis.ngJest = {
errorOnUnknownProperties: true,
},
};
import 'jest-preset-angular/setup-jest';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';
setupZoneTestEnv();
3 changes: 2 additions & 1 deletion libs/native-federation-runtime/src/test-setup.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
import 'jest-preset-angular/setup-jest';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';
setupZoneTestEnv();
1 change: 1 addition & 0 deletions libs/playground-lib/src/lib/auth.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { AuthService } from './auth.service';
}
`,
],
standalone: false,
})
export class AuthComponent {
userName = '';
Expand Down
3 changes: 2 additions & 1 deletion libs/playground-lib/src/test-setup.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
import 'jest-preset-angular/setup-jest';
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';
setupZoneTestEnv();