mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
b60df2aa6f
Properly imports `jasmine-ajax` instead of attempting to load some CommonJS bundle as a bootstrap dependency in Karma. PR Close #48521
27 lines
617 B
Python
27 lines
617 B
Python
load("//tools:defaults.bzl", "karma_web_test_suite", "ts_library")
|
|
|
|
ts_library(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(["**/*.ts"]),
|
|
# Visible to //:saucelabs_unit_tests_poc target
|
|
visibility = ["//:__pkg__"],
|
|
deps = [
|
|
"//packages/common",
|
|
"//packages/common/http",
|
|
"//packages/core",
|
|
"//packages/core/testing",
|
|
"//packages/misc/angular-in-memory-web-api",
|
|
"@npm//@types/jasmine-ajax",
|
|
"@npm//jasmine-ajax",
|
|
"@npm//rxjs",
|
|
],
|
|
)
|
|
|
|
karma_web_test_suite(
|
|
name = "test_web",
|
|
deps = [
|
|
":test_lib",
|
|
],
|
|
)
|