mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
build: update angular-in-memory-web-api to work with ESM (#48521)
Properly imports `jasmine-ajax` instead of attempting to load some CommonJS bundle as a bootstrap dependency in Karma. PR Close #48521
This commit is contained in:
parent
f44b322113
commit
b60df2aa6f
2 changed files with 1 additions and 9 deletions
|
|
@ -20,14 +20,6 @@ ts_library(
|
|||
|
||||
karma_web_test_suite(
|
||||
name = "test_web",
|
||||
# do not sort
|
||||
bootstrap = [
|
||||
"@npm//:node_modules/core-js-bundle/index.js",
|
||||
"@npm//:node_modules/reflect-metadata/Reflect.js",
|
||||
"@npm//:node_modules/jasmine-ajax/lib/mock-ajax.js",
|
||||
"//packages/zone.js/bundles:zone.umd.js",
|
||||
"//packages/zone.js/bundles:zone-testing.umd.js",
|
||||
],
|
||||
deps = [
|
||||
":test_lib",
|
||||
],
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
/// <reference types="jasmine-ajax" />
|
||||
import 'jasmine-ajax';
|
||||
|
||||
import {HTTP_INTERCEPTORS, HttpBackend, HttpClient, HttpClientModule, HttpEvent, HttpEventType, HttpHandler, HttpInterceptor, HttpRequest, HttpResponse} from '@angular/common/http';
|
||||
import {Injectable} from '@angular/core';
|
||||
|
|
|
|||
Loading…
Reference in a new issue