blob: fe2d6e1776e14d5f89b0d757a17efc58fa2331b8 [file]
load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test")
# Test what happens when we depend on the catch-all "node_modules" rule rather
# than declare our dependencies on individual npm packages.
# This is the legacy behavior prior to 0.13, so it also proves backwards-compatibility.
jasmine_node_test(
name = "test",
srcs = glob(["*.spec.js"]),
node_modules = "@npm//:node_modules",
)
# Test what happens when only certain NPM packages are in our dependencies.
# These packages and their dependencies are copied to the execroot, but
# the rest are not.
jasmine_node_test(
name = "fine_grained_test",
srcs = glob(["*.spec.js"]),
deps = [
"@npm//jasmine",
"@npm//typescript",
],
)