RSS

Tag Archives: code-coverage

Karma: Only Run 1 Test

Useful hack to only run 1 test in Karma.

Instead of ‘it’, change test declaration to ‘fit’.
Example:

    fit('should create', () => {
        expect(component).toBeTruthy();
    });

This will force Karma to only run ‘should create’ test.

Advertisements
 
Leave a comment

Posted by on October 22, 2018 in General

 

Tags: , , , , , ,

 
%d bloggers like this: