import { TestBed } from '@angular/core/testing'; import { provideRouter } from '@angular/router'; import { App } from './app'; describe('App', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [App], providers: [provideRouter([])], }).compileComponents(); }); it('renders the layout shell — skip link, header, main, footer', async () => { const fixture = TestBed.createComponent(App); await fixture.whenStable(); const root = fixture.nativeElement as HTMLElement; expect(root.querySelector('a.skip-link')).not.toBeNull(); expect(root.querySelector('app-header')).not.toBeNull(); expect(root.querySelector('main#main-content')).not.toBeNull(); expect(root.querySelector('app-footer')).not.toBeNull(); }); });