I'm trying add livedoc-mocha (https://github.com/dotnetprofessional/LiveDoc/tree/master/packages/livedoc-mocha) to an existing project here: https://github.com/rocket-pool/rocketpool
I installed livedoc with npm install --save-dev livedoc-mocha
but as for this part I'm not sure what to do
mocha --ui livedoc-mocha --reporter livedoc-mocha/livedoc-spec --recursive path-to-my-tests/
Is there a way to modify an existing configuration file within this repo so that when I run npm test
it will run mocha with livedoc-mocha? This is what the test field in the scripts section looks like in package.json:
"test": "hardhat test test/rocket-pool-tests.js",
There is also a hardhat.config.js file which has a mocha section that looks like this:
mocha: {
timeout: 0,
},
from Add livedoc-mocha to existing project
No comments:
Post a Comment