From b60df2aa6f80db8e8c94da4551663f1bb5e44494 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Mon, 12 Dec 2022 20:13:37 +0000 Subject: [PATCH] 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 --- packages/misc/angular-in-memory-web-api/test/BUILD.bazel | 8 -------- .../test/http-client-backend-service_spec.ts | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/misc/angular-in-memory-web-api/test/BUILD.bazel b/packages/misc/angular-in-memory-web-api/test/BUILD.bazel index 9b33e1d8bfa..b68eed3fb38 100644 --- a/packages/misc/angular-in-memory-web-api/test/BUILD.bazel +++ b/packages/misc/angular-in-memory-web-api/test/BUILD.bazel @@ -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", ], diff --git a/packages/misc/angular-in-memory-web-api/test/http-client-backend-service_spec.ts b/packages/misc/angular-in-memory-web-api/test/http-client-backend-service_spec.ts index 9f727b0c16f..d857fb96961 100644 --- a/packages/misc/angular-in-memory-web-api/test/http-client-backend-service_spec.ts +++ b/packages/misc/angular-in-memory-web-api/test/http-client-backend-service_spec.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -/// +import 'jasmine-ajax'; import {HTTP_INTERCEPTORS, HttpBackend, HttpClient, HttpClientModule, HttpEvent, HttpEventType, HttpHandler, HttpInterceptor, HttpRequest, HttpResponse} from '@angular/common/http'; import {Injectable} from '@angular/core';