-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Description
HI i have the following issue after i upgraded to rc6
previously the configuration was like the one below:
// karma-test-shim.js
...
System.import('angular2/testing').then(function(testing) {
return System.import('angular2/platform/testing/browser').then(function(providers) {
testing.setBaseTestProviders(
providers.TEST_BROWSER_PLATFORM_PROVIDERS,
[providers.TEST_BROWSER_APPLICATION_PROVIDERS, providers.CACHED_TEMPLATE_PROVIDER]);
});
}).then(function() {
...
now when i upgraded to rc6 and changed to:
import { TestBed } from "@angular/core/testing";
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from "@angular/platform-browser-dynamic/testing";
import {
RESOURCE_CACHE_PROVIDER
} from "@angular/platform-browser-dynamic";
`
TestBed.initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting(RESOURCE_CACHE_PROVIDER)
);
i got an error that the html is not found and when i tried to debug it seems taht resource cache provider is never called..
am i missing something?
Metadata
Metadata
Assignees
Labels
No labels