O
O
OrangePi2019-02-11 19:31:52
JavaScript
OrangePi, 2019-02-11 19:31:52

How to stream test to mocha via console (stdin)?

You need to stream the mocha file through the console, i.e. first collect the test with a bundler, and then stream it to mocha, without intermediate writing to disk:
rollup -f cjs test.js>mocha
rollup the stream returns, but it doesn’t look like mocha can count, no errors at all... can it really not read stdin?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question