Invoking `mocha` (a nodejs testing library) from Bazel test?

131 views
Skip to first unread message

Doug DesCombaz

unread,
Jun 1, 2019, 4:35:54 PM6/1/19
to Mocha

Does anyone have advice on how to invoke the mocha testing framework from `bazel test ...`?

I have a target:
nodejs_test(
    name = "mocha_test",
    data = [
        "@npm//mocha"
    ],
    entry_point = "mocha/bin/mocha",
)


The Bazel output is:
INFO: From Testing //xyz:mocha_test:
==================== Test output for //xyz:mocha_test:
Error: No test files found: "test"


`npm test` runs as expected from the same place





Reply all
Reply to author
Forward
0 new messages