build: add bazel test rules for remainder of packages (#21053)
PR Close #21053
This commit is contained in:
35
packages/upgrade/test/BUILD.bazel
Normal file
35
packages/upgrade/test/BUILD.bazel
Normal file
@ -0,0 +1,35 @@
|
||||
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library", "ts_web_test")
|
||||
load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test")
|
||||
|
||||
ts_library(
|
||||
name = "test_lib",
|
||||
testonly = 1,
|
||||
srcs = glob(["**/*.ts"]),
|
||||
tsconfig = "//packages:tsconfig",
|
||||
deps = [
|
||||
"//packages:types",
|
||||
"//packages/core",
|
||||
"//packages/core/testing",
|
||||
"//packages/platform-browser",
|
||||
"//packages/platform-browser-dynamic",
|
||||
"//packages/platform-browser/testing",
|
||||
"//packages/upgrade",
|
||||
"//packages/upgrade/static",
|
||||
"@rxjs",
|
||||
],
|
||||
)
|
||||
|
||||
ts_web_test(
|
||||
name = "test_web",
|
||||
bootstrap = [
|
||||
"//:angular_bootstrap_scripts",
|
||||
"//:node_modules/angular/angular.js",
|
||||
],
|
||||
# dissable since tests are running but not yet passing
|
||||
tags = ["manual"],
|
||||
# do not sort
|
||||
deps = [
|
||||
"//packages/_testing_init:browser",
|
||||
":test_lib",
|
||||
],
|
||||
)
|
@ -14,6 +14,10 @@ import * as angular from '@angular/upgrade/src/common/angular1';
|
||||
import {UpgradeAdapter, UpgradeAdapterRef} from '@angular/upgrade/src/dynamic/upgrade_adapter';
|
||||
import {$digest, html, multiTrim} from './test_helpers';
|
||||
|
||||
declare global {
|
||||
export var inject: Function;
|
||||
}
|
||||
|
||||
{
|
||||
describe('adapter: ng1 to ng2', () => {
|
||||
beforeEach(() => destroyPlatform());
|
||||
|
Reference in New Issue
Block a user