| load("//packages/jasmine:index.bzl", "jasmine_node_test") |
| |
| jasmine_node_test( |
| name = "test", |
| srcs = ["runfile_resolution.spec.js"], |
| data = [ |
| "test_fixture.md", |
| ":test_fixture.md.generated_file_suffix", |
| "//packages/runfiles:bazel_runfiles", |
| ], |
| ) |
| |
| # Path of file must start similar to `test_fixture.md` in order to regression-test a |
| # scenario where the runfile resolution would accidentally resolve the path to |
| # `test_fixture.md` through a runfile manifest entry that starts similarly. |
| genrule( |
| name = "test_fixture.md.generated_file_suffix", |
| outs = ["test_fixture.md.generated_file_suffix"], |
| cmd = """echo "Generated" > $@""", |
| ) |