mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
c1d46b8c08
The option 'local compile' is added for the test cases, and the locally compiled file for an input `abc.ts` is compared by default with the file `abc.local.js`. This allows to use the same input `abc.ts` for both full compilation (compared with `abc.js`) and local compilation (compared with `abc.local.js`). An example is provided in the next commit when compliance tests are added for the NgModule local compilation. PR Close #50577
25 lines
616 B
Python
25 lines
616 B
Python
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
|
|
|
ts_library(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = ["local_compile_spec.ts"],
|
|
deps = [
|
|
"//packages/compiler-cli/src/ngtsc/file_system",
|
|
"//packages/compiler-cli/test/compliance/test_helpers",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "local",
|
|
bootstrap = ["//tools/testing:node_no_angular"],
|
|
data = [
|
|
"//packages/compiler-cli/src/ngtsc/testing/fake_core:npm_package",
|
|
"//packages/compiler-cli/test/compliance/test_cases",
|
|
],
|
|
shard_count = 2,
|
|
deps = [
|
|
":test_lib",
|
|
],
|
|
)
|