From c6da01c4aa2d59beac2324e565f9571cbbf4c949 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 28 Mar 2021 20:34:10 +1000 Subject: [PATCH] disable Jest tests on Windows again It looks like the templated_args change only masked the error last time; Jest seems broken on Windows with both the patched .24 version, latest stable, and the new beta version too, presumably because symlinks are being handled differently on Windows somehow. It might be possible to hack around the issue by patching the following file, but I'm not sure: https://github.com/facebook/jest/blob/master/packages/jest-haste-map/src/crawlers/node.ts --- ts/html-filter/BUILD.bazel | 5 +++++ ts/lib/BUILD.bazel | 5 +++++ 2 files changed, 10 insertions(+) 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"], + }), )