|
1 |
| -load("//tools:defaults.bzl", "jasmine_node_test", "sass_binary", "ts_library") |
| 1 | +load("//tools:defaults.bzl", "sass_binary") |
| 2 | +load("//tools:defaults2.bzl", "jasmine_test", "ts_project") |
2 | 3 | load("@bazel_skylib//rules:build_test.bzl", "build_test")
|
3 | 4 |
|
4 | 5 | package(default_visibility = ["//visibility:public"])
|
@@ -52,29 +53,29 @@ build_test(
|
52 | 53 | ],
|
53 | 54 | )
|
54 | 55 |
|
55 |
| -ts_library( |
| 56 | +ts_project( |
56 | 57 | name = "unit_test_lib",
|
57 | 58 | testonly = True,
|
58 | 59 | srcs = glob([
|
59 | 60 | "*.spec.ts",
|
60 | 61 | ]),
|
61 |
| - # TODO(ESM): remove this once the Bazel NodeJS rules can handle ESM with `nodejs_binary`. |
62 |
| - devmode_module = "commonjs", |
63 | 62 | deps = [
|
64 |
| - "//tools/postcss", |
65 |
| - "//tools/sass:sass_lib", |
66 |
| - "@npm//@bazel/runfiles", |
67 |
| - "@npm//@types/jasmine", |
68 |
| - "@npm//@types/node", |
69 |
| - "@npm//postcss", |
70 |
| - "@npm//sass", |
| 63 | + "//:node_modules/@bazel/runfiles", |
| 64 | + "//:node_modules/postcss", |
| 65 | + "//:node_modules/sass", |
| 66 | + "//tools/postcss:postcss_rjs", |
| 67 | + "//tools/sass:sass_lib_rjs", |
71 | 68 | ],
|
72 | 69 | )
|
73 | 70 |
|
74 |
| -jasmine_node_test( |
| 71 | +jasmine_test( |
75 | 72 | name = "unit_tests",
|
76 |
| - srcs = [":unit_test_lib"], |
77 | 73 | data = [
|
| 74 | + ":unit_test_lib_rjs", |
| 75 | + "//src/material:sass_lib", |
| 76 | + "//src/material-experimental:sass_lib", |
| 77 | + ], |
| 78 | + no_copy_to_bin = [ |
78 | 79 | "//src/material:sass_lib",
|
79 | 80 | "//src/material-experimental:sass_lib",
|
80 | 81 | ],
|
|
0 commit comments