Skip to content

Commit

Permalink
Migrate to @angular:2.0.0-rc.1. - partial test support
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Fulnecky committed May 14, 2016
1 parent beb14db commit f062356
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions generators/app/templates/karma-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

Error.stackTraceLimit = Infinity;
require('es6-shim');
require('angular2/bundles/angular2-polyfills.js');
require('angular2/testing');
require('reflect-metadata');
require('zone.js/dist/zone');

require('@angular/core/testing');

/*
Ok, this is kinda crazy. We can use the the context method on
Expand All @@ -24,7 +26,7 @@ appContext.keys().forEach(appContext);
// Select BrowserDomAdapter.
// see https://github.com/AngularClass/angular2-webpack-starter/issues/124
// Somewhere in the test setup
var testing = require('angular2/testing');
var browser = require('angular2/platform/testing/browser');
var testing = require('@angular/core/testing');
var browser = require('@angular/platform-browser-dynamic/testing');

testing.setBaseTestProviders(browser.TEST_BROWSER_PLATFORM_PROVIDERS, browser.TEST_BROWSER_APPLICATION_PROVIDERS);

0 comments on commit f062356

Please sign in to comment.