Only Run 1 Test (Karma/Jasmine)
Only Run 1 Test (Karma/Jasmine)
Useful hack to only run 1 test in Karma.
Instead of ‘it’, change test declaration to ‘fit’. Example: fit('should create', () => { expect(component).toBeTruthy(); }); [\code]
This will force Karma to only run 'should create' test.
View On WordPress











