Well the idea is to test the reaction of duniter commands according to some scenarios like:
nodebin/ucoindresetconfignodebin/ucoindstart
The star duniter command should fail, as no network configuration is available (reset config removed the network configuration, which is absolutely required to start).
I do not have all the tests in mind yet, but you get the idea.
I tried to have another approach (commit ce704362) giving the possibility to make the tests "almost" like a command line call, but staying in JS unit tests.
The benefit to stay with JS is that it also feeds our code covering tool, whereas it would not with bats (I suppose).