Skip to content

Commit

Permalink
test(devtools): create unit tests for injector tree transformation fu…
Browse files Browse the repository at this point in the history
…nctions

Creates set of unit tests for each function in the data transformation pipeline that enables injector metadata to be visualized as d3 graphs.
  • Loading branch information
AleksanderBodurri committed Oct 6, 2023
1 parent be54a60 commit 97a87d7
Show file tree
Hide file tree
Showing 2 changed files with 9,101 additions and 0 deletions.
@@ -1,5 +1,7 @@
load("//devtools/tools:ng_module.bzl", "ng_module")
load("@io_bazel_rules_sass//:defs.bzl", "sass_binary")
load("//devtools/tools:typescript.bzl", "ts_test_library")
load("//devtools/tools:defaults.bzl", "karma_web_test_suite")

package(default_visibility = ["//:__subpackages__"])

Expand Down Expand Up @@ -46,3 +48,19 @@ ng_module(
"@npm//@angular/material",
],
)

ts_test_library(
name = "injector_tree_test",
srcs = ["injector-tree.spec.ts"],
deps = [
":injector_tree",
"//devtools/projects/ng-devtools/src/lib/devtools-tabs/dependency-injection:injector_tree_visualizer",
],
)

karma_web_test_suite(
name = "test",
deps = [
":injector_tree_test",
],
)

0 comments on commit 97a87d7

Please sign in to comment.