menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Parcel

📦🚀 Blazing fast, zero configuration web application bundler

Channels
Team

First time contributions and having issues with tests

July 28, 2019 at 7:59am

First time contributions and having issues with tests

July 28, 2019 at 7:59am
I'm currently trying to check which tests fail after my changes, but every time they fail for different reasons, even when I switch to master and re-run the tests, they fail. And also, I would like to know if it is possible to run only certain tests, since running everything is very time-consuming.

July 28, 2019 at 10:43am
This id how I would do it: 1. cd into the subfoulder you are working in. 2. npm test -- --grep <scriptname>
The scriptname can be any pattern
The grep argument actually checks the test name, we are just using mocha, so you can look into it's docs as well.
In npm test -- --grep <scriptname> on scriptname do I put the js file of the tests?