build: ts_web_test & ts_web_test_suite deprecated in favor of karma_web_test & karma_web_test_suite (#33802)
This is a breaking change in nodejs rules 0.40.0 as part of the API review & cleanup for the 1.0 release. Their APIs are identical as ts_web_test was just karma_web_test without the config_file attribute. PR Close #33802
This commit is contained in:

committed by
Kara Erickson

parent
ba4f171fac
commit
3f6d9a9870
@ -1,7 +1,7 @@
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
load("@npm_angular_bazel//:index.bzl", "ng_module")
|
||||
load("@npm_bazel_karma//:index.bzl", "ts_web_test_suite")
|
||||
load("@npm_bazel_karma//:index.bzl", "karma_web_test_suite")
|
||||
load("@build_bazel_rules_nodejs//internal/web_package:web_package.bzl", "web_package")
|
||||
load("@npm//history-server:index.bzl", "history_server")
|
||||
load("@npm_bazel_rollup//:index.bzl", "rollup_bundle")
|
||||
@ -137,7 +137,7 @@ ts_library(
|
||||
],
|
||||
)
|
||||
|
||||
ts_web_test_suite(
|
||||
karma_web_test_suite(
|
||||
name = "test",
|
||||
srcs = [
|
||||
"@npm//:node_modules/tslib/tslib.js",
|
||||
|
@ -1,6 +1,6 @@
|
||||
/**
|
||||
* @fileoverview Provides a script to initialize TestBed before tests are run.
|
||||
* This file should be included in the "runtime_deps" of a "ts_web_test_suite"
|
||||
* This file should be included in the "runtime_deps" of a "karma_web_test_suite"
|
||||
* rule.
|
||||
*/
|
||||
import {TestBed} from '@angular/core/testing';
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @fileoverview Provides named UMD shims for `rxjs/operators` and `rxjs/testing`.
|
||||
* This file should be included in the "scripts" of a "ts_devserver"
|
||||
* rule and the "deps" of a "ts_web_test_suite" rule.
|
||||
* rule and the "deps" of a "karma_web_test_suite" rule.
|
||||
*/
|
||||
// rxjs/operators
|
||||
(function(factory) {
|
||||
|
Reference in New Issue
Block a user