NodeJS testing
Overview
These rules let you run tests outside of a browser. This is typically faster than launching a test in Karma, for example.
jasmine_node_test
jasmine_node_test(name, srcs, data, deps, expected_exit_code, tags, **kwargs)
Runs tests in NodeJS using the Jasmine test runner.
To debug the test, see debugging notes in nodejs_test
.
Attributes
name |
name of the resulting label |
srcs |
JavaScript source files containing Jasmine specs |
data |
Runtime dependencies which will be loaded while the test executes |
deps |
Other targets which produce JavaScript, such as ts_library |
expected_exit_code |
The expected exit code for the test. Defaults to 0. |
tags |
bazel tags applied to test |
**kwargs |
remaining arguments are passed to the test rule |