If all your tests are under test directory then add the following in your package.json. It will run the unit tests using mocha and generates information under coverage folder. // package.json “scripts”: { “coverage”:...
Turns out, i was getting this error when setting up my rails app with docker on alpine. Many posts suggest to use tzinfo on the gem file. But I felt a better solution would...
The default timeout for mocha tests is 2000 ms. There are multiple ways to change this: Change timeout for a single test case describe(“testing promises”, function () { this.timeout(5000); it(‘test1’, function(){ … }); });...
The first time I saw that addres I was a bit confused. I used to think that 127.0.0.1 was the only way to refer to your local machine. Turns out, 0.0.0.0 is another way...
If you’re like me, youve occasionally made a typo when using the rails generator commands and ended up with a bunch of files that are misspelled. So, you just want to delete all the...
Recent Comments