mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Allow `validateStandardSchema()` to consume a computed schema so validation rules stay in sync when the schema changes over time. This supports schemas stored in computed signals (e.g. zod schemas that depend on input signals) and ensures the effective schema updates after initialization instead of being captured once. Fixes #66867
28 lines
717 B
Text
28 lines
717 B
Text
load("//tools:defaults.bzl", "ng_project", "zoneless_jasmine_test")
|
|
|
|
ng_project(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(["**/*.spec.ts"]),
|
|
deps = [
|
|
"//:node_modules/@standard-schema/spec",
|
|
"//:node_modules/zod",
|
|
"//packages/common/http",
|
|
"//packages/common/http/testing",
|
|
"//packages/core",
|
|
"//packages/core/testing",
|
|
"//packages/forms",
|
|
"//packages/forms/signals",
|
|
"//packages/forms/signals/compat",
|
|
"//packages/platform-browser",
|
|
"//packages/platform-browser/testing",
|
|
"//packages/private/testing",
|
|
],
|
|
)
|
|
|
|
zoneless_jasmine_test(
|
|
name = "test",
|
|
data = [
|
|
":test_lib",
|
|
],
|
|
)
|