Пропустить специфический тест на жасмине

// Excluding Tests / Specs
// If you want to exclude a specific test, simply use xit() instead of it(). The x means exclude.

describe('description', function () {
  xit('description', function () {});
});

//If you want to exclude an entire describe block, use xdescribe() instead of describe().

xdescribe('description', function () {
  it('description', function () {});

  it('description', function () {});
});

// When you exclude tests, these tests will be noted as “skipped”. If you are using Jasmine with Karma, the output on the terminal will look like this:

// skipped test

// Only Running Specific Tests / Specs
// If you want to run a specific test, use fit() instead of it(). The f stands for focused.

describe('description', function () {
  fit('test 1', function () {});

  it('test 2', function () {});
});
Mobile Star