load("//tools:defaults.bzl", "jasmine_node_test", "ts_library") ts_library( name = "ngc_test_lib", testonly = True, srcs = [ "index_test.ts", "test_support.ts", "tsconfig_template.ts", ], tsconfig = ":tsconfig.json", deps = [ "//packages/bazel/src/ngc-wrapped:ngc_lib", "//packages/compiler-cli", "@npm//typescript", ], ) # We need a filegroup so that we can refer # .d.ts files (by default, jasmine_node_test would get the .js files). filegroup( name = "angular_core", srcs = ["//packages/core"], ) jasmine_node_test( name = "ngc_test", size = "small", srcs = [":ngc_test_lib"], data = [ ":angular_core", "//packages/bazel/test/ngc-wrapped/empty:empty_tsconfig.json", "//packages/bazel/test/ngc-wrapped/empty:tsconfig.json", "//packages/private/testing", "@npm//@bazel/typescript/third_party/github.com/bazelbuild/bazel/src/main/protobuf:worker_protocol.proto", ], ) ts_library( name = "flat_module_test_lib", testonly = True, srcs = ["flat_module_test.ts"], tsconfig = ":tsconfig.json", deps = [ "//packages/private/testing", "@npm//@bazel/runfiles", ], ) jasmine_node_test( name = "flat_module_test", srcs = [":flat_module_test_lib"], data = ["//packages/bazel/test/ngc-wrapped/flat_module"], )