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:
Paul Gschwendtner 2022-12-12 20:13:37 +00:00
parent f44b322113
commit b60df2aa6f
2 changed files with 1 additions and 9 deletions

View file

@ -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",
],

View file

@ -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';