I'm setting up a testing framework for my Node.js application, and I have my Mocha tests already set up and working.
I wanted a UI for my test suite where I can select check boxes to determine which tests should be in the current execution. I have already created a UI for this with Reactjs.
Is there any way for me to trigger and start my mocha test suite through a Reactjs button onClick on the UI? (I do not want to test the React UI, I want the UI to start the Mocha tests which test a different application)
I am looking for a way to run Mocha either through the web or programmatically. React has made this a bit of a challenge since I used the create-react-app command. Attempting to add Mocha via index.html results in an issue since node_modules is outside of the public directory, and attempts to require mocha programmatically result in an error saying there is no constructor.