build: migrate all ts_library in packages/core/test (#61472)

This commit migrates all `ts_library` in `package/core/test` to
`ts_project`, and fixes deep module, or relative imports inside.

PR Close #61472
This commit is contained in:
Paul Gschwendtner
2025-05-20 10:00:43 +00:00
committed by Jessica Janiuk
parent 3a106a35bc
commit 8ead19fe00
65 changed files with 316 additions and 218 deletions
+21 -14
View File
@@ -1,4 +1,5 @@
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite", "ts_library")
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite")
load("//tools:defaults2.bzl", "ts_project")
package(default_visibility = ["//visibility:public"])
@@ -23,17 +24,19 @@ UTILS = [
"linker/source_map_util.ts",
]
ts_library(
ts_project(
name = "test_utils",
testonly = True,
srcs = UTILS,
deps = [
interop_deps = [
"//packages/compiler",
"@npm//source-map",
],
deps = [
"//:node_modules/source-map",
],
)
ts_library(
ts_project(
name = "test_lib",
testonly = True,
srcs = glob(
@@ -43,10 +46,7 @@ ts_library(
"reflection/es2015_inheritance_fixture.ts",
],
),
# Visible to //:saucelabs_unit_tests_poc target
visibility = ["//:__pkg__"],
deps = [
":test_utils",
interop_deps = [
"//packages/animations",
"//packages/animations/browser",
"//packages/animations/browser/testing",
@@ -69,20 +69,23 @@ ts_library(
"//packages/router",
"//packages/router/testing",
"//packages/zone.js/lib:zone_d_ts",
"@npm//rxjs",
],
# Visible to //:saucelabs_unit_tests_poc target
visibility = ["//:__pkg__"],
deps = [
":test_utils_rjs",
"//:node_modules/rxjs",
],
)
ts_library(
ts_project(
name = "test_node_only_lib",
testonly = True,
srcs = glob(
["**/*_node_only_spec.ts"],
exclude = UTILS,
),
deps = [
":test_lib",
":test_utils",
interop_deps = [
"//packages/compiler",
"//packages/core",
"//packages/core/src/compiler",
@@ -91,6 +94,10 @@ ts_library(
"//packages/platform-server/testing",
"//packages/private/testing",
],
deps = [
":test_lib_rjs",
":test_utils_rjs",
],
)
jasmine_node_test(
+9 -6
View File
@@ -1,4 +1,5 @@
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite", "ng_module", "ts_library")
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite", "ng_module")
load("//tools:defaults2.bzl", "ts_project")
package(default_visibility = ["//visibility:private"])
@@ -6,16 +7,14 @@ SPEC_FILES_WITH_FORWARD_REFS = [
"di_forward_ref_spec.ts",
]
ts_library(
ts_project(
name = "acceptance_lib",
testonly = True,
srcs = glob(
["**/*.ts"],
exclude = SPEC_FILES_WITH_FORWARD_REFS,
),
# Visible to //:saucelabs_unit_tests
visibility = ["//:__pkg__"],
deps = [
interop_deps = [
"//packages/animations",
"//packages/animations/browser",
"//packages/animations/browser/testing",
@@ -38,7 +37,11 @@ ts_library(
"//packages/private/testing",
"//packages/router",
"//packages/zone.js/lib:zone_d_ts",
"@npm//rxjs",
],
# Visible to //:saucelabs_unit_tests
visibility = ["//:__pkg__"],
deps = [
"//:node_modules/rxjs",
],
)
@@ -6,7 +6,10 @@
* found in the LICENSE file at https://angular.dev/license
*/
import {PLATFORM_BROWSER_ID, PLATFORM_SERVER_ID} from '@angular/common/src/platform_id';
import {
ɵPLATFORM_BROWSER_ID as PLATFORM_BROWSER_ID,
ɵPLATFORM_SERVER_ID as PLATFORM_SERVER_ID,
} from '@angular/common';
import {
AfterRenderRef,
ApplicationRef,
@@ -1,4 +1,5 @@
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite", "ng_module", "nodejs_binary", "npm_package_bin", "ts_library")
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite", "ng_module", "nodejs_binary", "npm_package_bin")
load("//tools:defaults2.bzl", "ts_project")
package(default_visibility = ["//visibility:private"])
@@ -13,20 +14,21 @@ TEST_DEPS = [
"//packages/core/testing",
"//packages/platform-browser",
"//packages/core/primitives/signals",
"@npm//rxjs",
]
ts_library(
ts_project(
name = "test_compiler_lib",
testonly = True,
srcs = ["authoring_test_compiler.ts"],
deps = [
interop_deps = [
"//packages/compiler-cli",
"//packages/compiler-cli/src/ngtsc/imports",
"//packages/compiler-cli/src/ngtsc/partial_evaluator",
"//packages/compiler-cli/src/ngtsc/reflection",
"//packages/compiler-cli/src/ngtsc/transform/jit",
"@npm//typescript",
],
deps = [
"//:node_modules/typescript",
],
)
@@ -37,7 +39,7 @@ nodejs_binary(
":test_compiler_lib",
"//packages:package_json",
],
entry_point = ":authoring_test_compiler.ts",
entry_point = ":authoring_test_compiler.js",
)
npm_package_bin(
@@ -49,18 +51,25 @@ npm_package_bin(
tool = ":test_compiler",
)
ts_library(
ts_project(
name = "test_jit_lib",
testonly = True,
srcs = ["transformed_%s" % file for file in TEST_FILES],
deps = TEST_DEPS,
interop_deps = TEST_DEPS,
deps = [
# TODO: Only rely on `TEST_DEPS`. This should be removed during `rules_js` migration.
"//:node_modules/rxjs",
],
)
ng_module(
name = "test_lib",
testonly = True,
srcs = TEST_FILES,
deps = TEST_DEPS,
deps = TEST_DEPS + [
# TODO: Only rely on `TEST_DEPS`. This should be removed during `rules_js` migration.
"@npm//rxjs",
],
)
jasmine_node_test(
@@ -7,7 +7,7 @@
*/
import {CommonModule} from '@angular/common';
import {expect} from '@angular/platform-browser/testing/src/matchers';
import {expect} from '@angular/private/testing/matchers';
import {BehaviorSubject} from 'rxjs';
import {
ApplicationRef,
@@ -28,9 +28,9 @@ import {
ViewChild,
ViewContainerRef,
} from '../../src/core';
import {provideCheckNoChangesConfig} from '@angular/core/src/change_detection/provide_check_no_changes_config';
import {provideCheckNoChangesConfig} from '../../src/change_detection/provide_check_no_changes_config';
import {ComponentFixture, TestBed} from '../../testing';
import {expect} from '@angular/platform-browser/testing/src/matchers';
import {expect} from '@angular/private/testing/matchers';
import {of} from 'rxjs';
describe('change detection for transplanted views', () => {
@@ -33,7 +33,7 @@ import {
ɵɵdefineComponent,
} from '../../src/core';
import {TestBed} from '../../testing';
import {expect} from '@angular/platform-browser/testing/src/matchers';
import {expect} from '@angular/private/testing/matchers';
import {global} from '../../src/util/global';
@@ -22,7 +22,7 @@ import {
} from '../../src/core';
import {TestBed} from '../../testing';
import {By} from '@angular/platform-browser';
import {expect} from '@angular/platform-browser/testing/src/matchers';
import {expect} from '@angular/private/testing/matchers';
describe('projection', () => {
function getElementHtml(element: HTMLElement) {
+2 -1
View File
@@ -41,10 +41,11 @@ import {getInjectorResolutionPath} from '../../src/render3/util/injector_discove
import {ActivatedRoute, provideRouter, Router, RouterOutlet} from '@angular/router';
import {ChainedInjector} from '../../src/render3/chained_injector';
import {global} from '../../src/util/global';
import {TimerScheduler} from '@angular/core/src/defer/timer_scheduler';
import {TimerScheduler} from '../../src/defer/timer_scheduler';
import {Console} from '../../src/console';
import {formatRuntimeErrorCode, RuntimeErrorCode} from '../../src/errors';
import {provideNgReflectAttributes} from '../../src/ng_reflect';
import {isBrowser} from '@angular/private/testing';
/**
* Clears all associated directive defs from a given component class.
@@ -38,6 +38,7 @@ import {clearTranslations, loadTranslations} from '@angular/localize';
import {computeMsgId} from '@angular/compiler';
import {EVENT_MANAGER_PLUGINS} from '@angular/platform-browser';
import {ComponentType} from '../../src/render3';
import {isNode} from '@angular/private/testing';
describe('hot module replacement', () => {
it('should recreate a single usage of a basic component', () => {
+1 -1
View File
@@ -38,7 +38,7 @@ import {getComponentLView} from '../../src/render3/util/discovery_utils';
import {DeferBlockBehavior, DeferBlockState, TestBed} from '../../testing';
import {clearTranslations, loadTranslations} from '@angular/localize';
import {By} from '@angular/platform-browser';
import {expect} from '@angular/platform-browser/testing/src/matchers';
import {expect} from '@angular/private/testing/matchers';
import {BehaviorSubject} from 'rxjs';
import {provideNgReflectAttributes} from '../../src/ng_reflect';
@@ -23,7 +23,7 @@ import {
ViewChild,
ViewChildren,
} from '../../src/core';
import {InternalInjectFlags} from '@angular/core/src/di/interface/injector';
import {InternalInjectFlags} from '../../src/di/interface/injector';
import {NullInjector} from '../../src/di/null_injector';
import {
isClassProvider,
+1 -1
View File
@@ -29,7 +29,7 @@ import {
ɵɵinject,
} from '../../src/core';
import {TestBed} from '../../testing';
import {expect} from '@angular/platform-browser/testing/src/matchers';
import {expect} from '@angular/private/testing/matchers';
describe('pipe', () => {
@Pipe({
@@ -21,7 +21,7 @@ import {
import {leaveView, specOnlyIsInstructionStateEmpty} from '../../src/render3/state';
import {inject, TestBed, waitForAsync} from '../../testing';
import {By} from '@angular/platform-browser';
import {expect} from '@angular/platform-browser/testing/src/matchers';
import {expect} from '@angular/private/testing/matchers';
describe('providers', () => {
describe('inheritance', () => {
@@ -13,8 +13,19 @@ import {
ɵNoopAnimationStyleNormalizer,
} from '@angular/animations/browser';
import {MockAnimationDriver, MockAnimationPlayer} from '@angular/animations/browser/testing';
import {CommonModule, DOCUMENT} from '@angular/common';
import {PLATFORM_BROWSER_ID, PLATFORM_SERVER_ID} from '@angular/common/src/platform_id';
import {
CommonModule,
DOCUMENT,
ɵPLATFORM_BROWSER_ID as PLATFORM_BROWSER_ID,
ɵPLATFORM_SERVER_ID as PLATFORM_SERVER_ID,
} from '@angular/common';
import {
ɵDomRendererFactory2 as DomRendererFactory2,
EventManager,
ɵSharedStylesHost,
} from '@angular/platform-browser';
import {isBrowser, isNode} from '@angular/private/testing';
import {expect} from '@angular/private/testing/matchers';
import {
Component,
DoCheck,
@@ -28,9 +39,6 @@ import {
import {RElement} from '../../src/render3/interfaces/renderer_dom';
import {NoopNgZone} from '../../src/zone/ng_zone';
import {TestBed} from '../../testing';
import {EventManager, ɵSharedStylesHost} from '@angular/platform-browser';
import {DomRendererFactory2} from '@angular/platform-browser/src/dom/dom_renderer';
import {expect} from '@angular/platform-browser/testing/src/matchers';
describe('renderer factory lifecycle', () => {
let logs: string[] = [];
@@ -26,6 +26,7 @@ import {
getSortedStyle,
} from '../../testing/src/styling';
import {By, DomSanitizer, SafeStyle} from '@angular/platform-browser';
import {isBrowser} from '@angular/private/testing';
describe('styling', () => {
describe('apply in prioritization order', () => {
@@ -46,7 +46,7 @@ import {
import {ComponentFixture, TestBed, TestComponentRenderer} from '../../testing';
import {clearTranslations, loadTranslations} from '@angular/localize';
import {By, DomSanitizer} from '@angular/platform-browser';
import {expect} from '@angular/platform-browser/testing/src/matchers';
import {expect} from '@angular/private/testing/matchers';
describe('ViewContainerRef', () => {
/**
@@ -43,7 +43,7 @@ import {
BrowserAnimationsModule,
NoopAnimationsModule,
} from '@angular/platform-browser/animations';
import {hasStyle} from '@angular/platform-browser/testing/src/browser_util';
import {hasStyle, isNode} from '@angular/private/testing';
const DEFAULT_NAMESPACE_ID = 'id';
const DEFAULT_COMPONENT_ID = '1';
@@ -24,14 +24,16 @@ import {
AnimationDriver,
ɵAnimationEngine,
ɵnormalizeKeyframes as normalizeKeyframes,
ɵTransitionAnimationPlayer as TransitionAnimationPlayer,
ɵENTER_CLASSNAME as ENTER_CLASSNAME,
ɵLEAVE_CLASSNAME as LEAVE_CLASSNAME,
} from '@angular/animations/browser';
import {TransitionAnimationPlayer} from '@angular/animations/browser/src/render/transition_animation_engine';
import {ENTER_CLASSNAME, LEAVE_CLASSNAME} from '@angular/animations/browser/src/util';
import {MockAnimationDriver, MockAnimationPlayer} from '@angular/animations/browser/testing';
import {CommonModule} from '@angular/common';
import {Component, HostBinding, ViewChild} from '../../src/core';
import {fakeAsync, flushMicrotasks, TestBed} from '../../testing';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {isNode} from '@angular/private/testing';
import {HostListener} from '../../src/metadata/directives';
@@ -16,13 +16,17 @@ import {
trigger,
ɵAnimationGroupPlayer as AnimationGroupPlayer,
} from '@angular/animations';
import {AnimationDriver, ɵAnimationEngine} from '@angular/animations/browser';
import {TransitionAnimationPlayer} from '@angular/animations/browser/src/render/transition_animation_engine';
import {
AnimationDriver,
ɵAnimationEngine,
ɵTransitionAnimationPlayer as TransitionAnimationPlayer,
} from '@angular/animations/browser';
import {MockAnimationDriver, MockAnimationPlayer} from '@angular/animations/browser/testing';
import {Component, HostBinding} from '../../src/core';
import {fakeAsync, flushMicrotasks, TestBed, tick} from '../../testing';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {ActivatedRoute, Router, RouterModule, RouterOutlet} from '@angular/router';
import {isNode} from '@angular/private/testing';
(function () {
// these tests are only meant to be run within the DOM (for now)
@@ -5,18 +5,26 @@
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {animate, query, state, style, transition, trigger} from '@angular/animations';
import {
animate,
query,
state,
style,
transition,
trigger,
ɵAnimationGroupPlayer as AnimationGroupPlayer,
} from '@angular/animations';
import {
AnimationDriver,
ɵAnimationEngine,
ɵWebAnimationsDriver,
ɵWebAnimationsPlayer,
ɵTransitionAnimationPlayer as TransitionAnimationPlayer,
} from '@angular/animations/browser';
import {TransitionAnimationPlayer} from '@angular/animations/browser/src/render/transition_animation_engine';
import {AnimationGroupPlayer} from '@angular/animations/src/players/animation_group_player';
import {Component, ViewChild} from '../../src/core';
import {TestBed} from '../../testing';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {isNode} from '@angular/private/testing';
(function () {
// these tests are only meant to be run within the DOM (for now)
+9 -12
View File
@@ -8,12 +8,18 @@
import {DOCUMENT, ɵgetDOM as getDOM} from '@angular/common';
import {ResourceLoader} from '@angular/compiler';
import {
BrowserModule,
ɵDomRendererFactory2 as DomRendererFactory2,
} from '@angular/platform-browser';
import type {ServerModule} from '@angular/platform-server';
import {createTemplate, dispatchEvent, getContent, isNode} from '@angular/private/testing';
import {expect} from '@angular/private/testing/matchers';
import {
APP_BOOTSTRAP_LISTENER,
APP_INITIALIZER,
ChangeDetectionStrategy,
Compiler,
CompilerFactory,
Component,
EnvironmentInjector,
InjectionToken,
@@ -32,21 +38,12 @@ import {
import {ErrorHandler} from '../src/error_handler';
import {ComponentRef} from '../src/linker/component_factory';
import {createEnvironmentInjector, getLocaleId} from '../src/render3';
import {BrowserModule} from '@angular/platform-browser';
import {DomRendererFactory2} from '@angular/platform-browser/src/dom/dom_renderer';
import {
createTemplate,
dispatchEvent,
getContent,
} from '@angular/platform-browser/testing/src/browser_util';
import {expect} from '@angular/platform-browser/testing/src/matchers';
import type {ServerModule} from '@angular/platform-server';
import {take} from 'rxjs/operators';
import {compileNgModuleFactory} from '../src/application/application_ngmodule_factory_compiler';
import {ApplicationRef} from '../src/application/application_ref';
import {NoopNgZone} from '../src/zone/ng_zone';
import {ComponentFixtureNoNgZone, inject, TestBed, waitForAsync, withModule} from '../testing';
import {take} from 'rxjs/operators';
import {compileNgModuleFactory} from '../src/application/application_ngmodule_factory_compiler';
let serverPlatformModule: Promise<Type<ServerModule>> | null = null;
if (isNode) {
+21 -9
View File
@@ -1,6 +1,7 @@
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite", "nodejs_test", "ts_library")
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite", "nodejs_test")
load("//tools:defaults2.bzl", "ts_project")
ts_library(
ts_project(
name = "signal_authoring_signature_test_lib",
testonly = True,
srcs = [
@@ -10,35 +11,46 @@ ts_library(
"signal_queries_signature_test.ts",
"unwrap_writable_signal_signature_test.ts",
],
deps = ["//packages/core"],
interop_deps = ["//packages/core"],
)
ts_library(
ts_project(
name = "type_tester_lib",
testonly = True,
srcs = ["type_tester.ts"],
deps = [
"@npm//typescript",
"//:node_modules/typescript",
],
)
filegroup(
name = "types",
testonly = True,
srcs = [
":signal_authoring_signature_test_lib_rjs",
":type_tester_lib_rjs",
],
output_group = "types",
)
nodejs_test(
name = "type_test",
data = [
":signal_authoring_signature_test_lib",
":type_tester_lib",
":types",
"//packages:package_json",
],
entry_point = ":type_tester.ts",
entry_point = ":type_tester.js",
)
ts_library(
ts_project(
name = "test_lib",
testonly = True,
srcs = [
"input_signal_spec.ts",
"model_input_spec.ts",
],
deps = [
interop_deps = [
"//packages/core",
"//packages/core/primitives/signals",
"//packages/core/testing",
@@ -1,6 +1,7 @@
load("//tools:defaults.bzl", "app_bundle", "jasmine_node_test", "ng_module", "ts_library")
load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test")
load("@npm//http-server:index.bzl", "http_server")
load("//tools:defaults.bzl", "app_bundle", "jasmine_node_test", "ng_module")
load("//tools:defaults2.bzl", "ts_project")
load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test")
package(default_visibility = ["//visibility:public"])
@@ -23,17 +24,18 @@ app_bundle(
],
)
ts_library(
ts_project(
name = "test_lib",
testonly = True,
srcs = glob(["*_spec.ts"]),
deps = [
"//packages:types",
interop_deps = [
"//packages/compiler",
"//packages/core",
"//packages/core/testing",
"//packages/private/testing",
"@npm//@bazel/runfiles",
],
deps = [
"//:node_modules/@bazel/runfiles",
],
)
@@ -1,15 +1,16 @@
load("//tools:defaults.bzl", "app_bundle", "ts_library")
load("@npm//@angular/build-tooling/bazel/map-size-tracking:index.bzl", "js_mapping_size_test")
load("//tools:defaults.bzl", "app_bundle")
load("//tools:defaults2.bzl", "ts_project")
package(default_visibility = ["//visibility:public"])
ts_library(
ts_project(
name = "core_all",
srcs = ["index.ts"],
tags = [],
deps = [
interop_deps = [
"//packages/core",
],
tags = [],
)
app_bundle(
@@ -1,5 +1,6 @@
load("@npm//http-server:index.bzl", "http_server")
load("//tools:defaults.bzl", "app_bundle", "jasmine_node_test", "ng_module", "ts_library")
load("//tools:defaults.bzl", "app_bundle", "jasmine_node_test", "ng_module")
load("//tools:defaults2.bzl", "ts_project")
package(default_visibility = ["//visibility:public"])
@@ -25,16 +26,17 @@ app_bundle(
],
)
ts_library(
ts_project(
name = "test_lib",
testonly = True,
srcs = glob(["*_spec.ts"]),
deps = [
"//packages:types",
interop_deps = [
"//packages/compiler",
"//packages/core/testing",
"//packages/private/testing",
"@npm//@bazel/runfiles",
],
deps = [
"//:node_modules/@bazel/runfiles",
],
)
@@ -1,6 +1,7 @@
load("//tools:defaults.bzl", "app_bundle", "jasmine_node_test", "ng_module", "ts_library")
load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test")
load("@npm//http-server:index.bzl", "http_server")
load("//tools:defaults.bzl", "app_bundle", "jasmine_node_test", "ng_module")
load("//tools:defaults2.bzl", "ts_project")
load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test")
package(default_visibility = ["//visibility:public"])
@@ -27,16 +28,17 @@ app_bundle(
],
)
ts_library(
ts_project(
name = "test_lib",
testonly = True,
srcs = glob(["*_spec.ts"]),
deps = [
"//packages:types",
interop_deps = [
"//packages/compiler",
"//packages/core/testing",
"//packages/private/testing",
"@npm//@bazel/runfiles",
],
deps = [
"//:node_modules/@bazel/runfiles",
],
)
@@ -1,6 +1,7 @@
load("//tools:defaults.bzl", "app_bundle", "jasmine_node_test", "ng_module", "ts_library")
load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test")
load("@npm//http-server:index.bzl", "http_server")
load("//tools:defaults.bzl", "app_bundle", "jasmine_node_test", "ng_module")
load("//tools:defaults2.bzl", "ts_project")
load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test")
package(default_visibility = ["//visibility:public"])
@@ -26,17 +27,18 @@ app_bundle(
],
)
ts_library(
ts_project(
name = "test_lib",
testonly = True,
srcs = glob(["*_spec.ts"]),
deps = [
"//packages:types",
interop_deps = [
"//packages/compiler",
"//packages/core",
"//packages/core/testing",
"//packages/private/testing",
"@npm//@bazel/runfiles",
],
deps = [
"//:node_modules/@bazel/runfiles",
],
)
@@ -1,6 +1,7 @@
load("//tools:defaults.bzl", "app_bundle", "jasmine_node_test", "ng_module", "ts_library")
load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test")
load("@npm//http-server:index.bzl", "http_server")
load("//tools:defaults.bzl", "app_bundle", "jasmine_node_test", "ng_module")
load("//tools:defaults2.bzl", "ts_project")
load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test")
package(default_visibility = ["//visibility:public"])
@@ -26,17 +27,18 @@ app_bundle(
],
)
ts_library(
ts_project(
name = "test_lib",
testonly = True,
srcs = glob(["*_spec.ts"]),
deps = [
"//packages:types",
interop_deps = [
"//packages/compiler",
"//packages/core",
"//packages/core/testing",
"//packages/private/testing",
"@npm//@bazel/runfiles",
],
deps = [
"//:node_modules/@bazel/runfiles",
],
)
@@ -1,6 +1,7 @@
load("//tools:defaults.bzl", "app_bundle", "jasmine_node_test", "ng_module", "ts_library")
load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test")
load("@npm//http-server:index.bzl", "http_server")
load("//tools:defaults.bzl", "app_bundle", "jasmine_node_test", "ng_module")
load("//tools:defaults2.bzl", "ts_project")
load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test")
package(default_visibility = ["//visibility:public"])
@@ -24,16 +25,17 @@ app_bundle(
],
)
ts_library(
ts_project(
name = "test_lib",
testonly = True,
srcs = glob(["*_spec.ts"]),
deps = [
"//packages:types",
interop_deps = [
"//packages/compiler",
"//packages/core/testing",
"//packages/private/testing",
"@npm//@bazel/runfiles",
],
deps = [
"//:node_modules/@bazel/runfiles",
],
)

Some files were not shown because too many files have changed in this diff Show More