c9879deded
The Ivy Language Service codebase testing suite contains a few testing utilities which allow for assertions of Language Service operations against an in-memory project. However, this existing utility lacks the flexibility to test more complex scenarios, such as those involving multiple TS projects with dependencies between them. This commit introduces a new 'testing' package for the Ivy LS which attempts to more faithfully represent the possible states of an IDE, and allows for testing of more advanced scenarios. The new utility borrows from the prior version and is geared towards more ergonomic testing. Only basic functionality is present in this initial implementation, but this will grow over time. PR Close #40679
20 lines
620 B
Python
20 lines
620 B
Python
load("//tools:defaults.bzl", "ts_library")
|
|
|
|
package(default_visibility = ["//packages/language-service:__subpackages__"])
|
|
|
|
ts_library(
|
|
name = "testing",
|
|
testonly = True,
|
|
srcs = glob(["**/*.ts"]),
|
|
deps = [
|
|
"//packages/compiler",
|
|
"//packages/compiler-cli/src/ngtsc/core:api",
|
|
"//packages/compiler-cli/src/ngtsc/file_system",
|
|
"//packages/compiler-cli/src/ngtsc/file_system/testing",
|
|
"//packages/compiler-cli/src/ngtsc/testing",
|
|
"//packages/compiler-cli/src/ngtsc/typecheck/api",
|
|
"//packages/language-service/ivy",
|
|
"@npm//typescript",
|
|
],
|
|
)
|