mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08: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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user