tree: c988a1d78680f3a6415d02978f97197a574e657a [path history] [tgz]
  1. BUILD.bazel
  2. mocha-docs.md
  3. mocha.bzl
  4. mocha_reporters.json
  5. package.json
  6. README.md
  7. test.js
examples/macro/README.md

macro example

This example shows how to create a wrapper macro around a generated bin entry from an npm package.

The macro is used to create mocha_test targets to test JavaScript with mocha. It also integrates with Bazel's JUnit XML consumer so that --test_summary=detailed works.