No Test Script Configured for Boilerplate

Tell us what’s happening:

To run the tests in the console, use the command npm run test . To open the Repl.it console, press Ctrl+Shift+P (Cmd if on a Mac) and type “open shell”

The instructions for this project suggests that we can run npm run test to be able to test the project, but a test command isn’t even configured in package.json.

I believe you’ll need to add the following to package.json:

"test": "mocha tests --ui tdd"

I think this is important to document, as even people that have used mocha before might not realize they need --ui tdd, at least I certainly didn’t.

Based on the comment:

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0.

Challenge: Metric-Imperial Converter

Link to the challenge:


Edit

Made a PR on GitHub for it:

Thank you, for taking the time to mention this.

Issues can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.

1 Like