diff --git a/ts/html-filter/BUILD.bazel b/ts/html-filter/BUILD.bazel
index a0e9ee706..711424e90 100644
--- a/ts/html-filter/BUILD.bazel
+++ b/ts/html-filter/BUILD.bazel
@@ -40,6 +40,11 @@ jest_test(
"//ts:jest.config.js",
"//ts:package.json",
],
+ target_compatible_with = select({
+ "@platforms//os:osx": [],
+ "@platforms//os:linux": [],
+ "//conditions:default": ["@platforms//os:linux"],
+ }),
)
# Tests
diff --git a/ts/lib/BUILD.bazel b/ts/lib/BUILD.bazel
index 627396e19..b112ad3cc 100644
--- a/ts/lib/BUILD.bazel
+++ b/ts/lib/BUILD.bazel
@@ -103,4 +103,9 @@ jest_test(
"//ts:package.json",
"@npm//protobufjs",
],
+ target_compatible_with = select({
+ "@platforms//os:osx": [],
+ "@platforms//os:linux": [],
+ "//conditions:default": ["@platforms//os:linux"],
+ }),
)