Skip to content

Commit ceb494b

Browse files
committed
Hope tests pass on Windows
1 parent 13da707 commit ceb494b

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.bazelrc

+4
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,9 @@ build --sandbox_default_allow_network=false
2121
# Docs: https://bazel.build/reference/command-line-reference#flag--host_jvm_args
2222
startup --host_jvm_args=-DBAZEL_TRACK_SOURCE_DIRECTORIES=1
2323

24+
# Enable runfiles symlink tree for rules_jest.
25+
# Docs: https://bazel.build/reference/command-line-reference#flag--enable_runfiles
26+
build --enable_runfiles
27+
2428
# This bazelrc file can be used for user-specific custom build settings.
2529
try-import %workspace%/.user.bazelrc

examples/calculator/BUILD.bazel

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ cc_library(
2222

2323
jest_test(
2424
name = "calculator_test",
25+
args = [
26+
"--runTestsByPath",
27+
"%s/calculator.test.js" % package_name(),
28+
],
2529
data = [
2630
":bindings",
2731
":calculator.test.js",

examples/hello_world/BUILD.bazel

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ node_extension(
88

99
jest_test(
1010
name = "hello_world_test",
11+
args = [
12+
"--runTestsByPath",
13+
"%s/hello_world.test.js" % package_name(),
14+
],
1115
data = [
1216
":hello_world",
1317
":hello_world.test.js",

0 commit comments

Comments
 (0)