Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: verify outputs of examples/out_dir test #633

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions examples/out_dir/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
load("@aspect_rules_ts//ts:defs.bzl", "ts_project")
load("@bazel_skylib//rules:build_test.bzl", "build_test")

ts_project(
name = "out_dir-tsconfig",
Expand Down Expand Up @@ -30,3 +31,26 @@ ts_project(
out_dir = "declaration_dir",
tsconfig = {},
)

build_test(
name = "test",
targets = [
# outputs specified by the tsconfig attr
":out_dir-tsconfig",
"tsconfig/main.js",
"tsconfig/main.d.ts",
"tsconfig/main.d.ts.map",

# outputs specified by the ts_project attrs
":out_dir-params",
"param/main.js",
"param/main.d.ts",
"param/main.d.ts.map",

# outptus specified with out_dir *and* declaration_dir
":out_dir-declaration_dir",
"declaration_dir/main.js",
"decl_map/main.d.ts",
"decl_map/main.d.ts.map",
],
)
Loading