Angular 1.x/2 Hybrid, karma tests not bootstrapping ng1 app : <p>I currently have a Hybrid Angular app (2.4.9 and 1.5.0) using angular-cli. Currently, when running our application, we are able to bootstrap the 1.5 app correctly:</p>

<pre class="lang-js prettyprint-override"><code>// main.ts
import ...

platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef =&gt; {
  angular.element(document).ready(() =&gt; { 
    const upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule;
    upgrade.bootstrap(document.body, ['myApp'], {strictDi: true});
  });
});
</code></pre>

<p>However, in our <code>test.ts</code> file:</p>

<pre class="lang-js prettyprint-override"><code>// test.ts
// This file is required by karma.conf.js and loads recursively all the .spec and framework files

import ...;

declare var __karma__: any;
declare var require: any;

__karma__.loaded = function () {};

getTestBed().initTestEnvironment(
  BrowserDynamicTestingModule,
  // I'm assuming that I need to call 'boostrapModule()' somehow here...
  platformBrowserDynamicTesting() 
);

const context = require.context('./', true, /\.spec\.ts$/);

context.keys().map(context);

__karma__.start();
</code></pre>

<p>I'm not exactly sure how to bootstrap our 1.5 application into the test environment, all I've gotten is <code>Module 'myApp' is not available!</code>, and my Google skills have failed trying to find an example.</p>
