Replies: 1 comment
-
|
@bytrangle, this is a great idea! Please do add it 🚀 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Sorry if this hasn't been mentioned in the Contributing guideline.
Sometimes, a few code changes one made leads to some unit tests, or test suits to fail. AFAIK, you can run a specific file with this command:
For example:
yarn jest gitlab.spec.jsto run all the tests inside thegitlab.spec.jsfile.You can also run a specific test inside a file by adding the flag
--testNamePattern.The command above will run the test that contains the word "stores
in thegitlab.spec.js`.I understand that this is peculiar to Jest and not in the domain of Netlify CMS, so I wonder if we should add the tip above to the Contributing guideline? Until a few days ago, I didn't know any better and troubleshoot one failed file, then ran
yarn testand waited for all of them to finish 😨.Beta Was this translation helpful? Give feedback.
All reactions