Previously, only e2e tests were run for docs examples on CI. As a result, unit tests (which are included in the zipped archives we provide for users to download and play with the examples locally) were often outdated and broken. This commit configures specific docs examples that have meaningful unit tests to run them on CI (via the `run-example-e2e.js` script). Where necessary, the unit tests are fixed to ensure they pass and reflect the changes in the corresponding component/service. This commit also removes some auto-generated unit tests that are not meaningful (e.g. make trivial assertions, such that a component instance is truthy) and are often broken anyway (e.g. because the corresponding component has been changed in ways that make the tests fail). PR Close #36143
		
			
				
	
	
		
			19 lines
		
	
	
		
			562 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			562 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import { NgModule } from '@angular/core';
 | 
						|
import { RouterModule, Routes } from '@angular/router';
 | 
						|
 | 
						|
import { AboutComponent } from './about/about.component';
 | 
						|
 | 
						|
export const routes: Routes = [
 | 
						|
  { path: '', redirectTo: 'dashboard', pathMatch: 'full'},
 | 
						|
  { path: 'about', component: AboutComponent },
 | 
						|
  { path: 'heroes', loadChildren: () => import('./hero/hero.module').then(m => m.HeroModule)},
 | 
						|
];
 | 
						|
 | 
						|
@NgModule({
 | 
						|
  imports: [
 | 
						|
    RouterModule.forRoot(routes),
 | 
						|
  ],
 | 
						|
  exports: [ RouterModule ] // re-export the module declarations
 | 
						|
})
 | 
						|
export class AppRoutingModule { }
 |