title: Angular 8 unit test gives error when using module on the empty routing path ({path: ''})
body: <p>I am using Angular 8. in the app-routing module I added this route:</p>
  <pre><code>{ path: '', component: MainComponent, loadChildren:'./modules/main/main.module#MainModule', canActivate: [LoginService] },
  </code></pre>
  <p>It works fine the only thing is that when I run my unit tests nothing fails but in the console I get the error:</p>
  <pre><code>Uncaught Error: Uncaught (in promise): Error: Cannot find module ./modules/main/main.module#MainModule
  </code></pre>
  <p>As soon as I put something between the <code>&quot;&quot;</code> the error disappears, so like this for example:</p>
  <pre><code>{ path: 'test', component: MainComponent, loadChildren:'./modules/main/main.module#MainModule', canActivate: [LoginService] },
  </code></pre>
  <p>Does someone understand why this is and how I can fix this?</p>