Skip one test in test file Jest

Gleichmut picture Gleichmut · Jan 6, 2018 · Viewed 50.4k times · Source

I'm using Jest framework and have a test suite. I want to turn off/skip one of my tests.

Googling documentation doesn't give me answers.

Do you know the answer or source of information to check?

Answer

Gleichmut picture Gleichmut · Jan 6, 2018

I found the answer here

https://devhints.io/jest

test('it is raining', () => {
  expect(inchesOfRain()).toBeGreaterThan(0);
});

test.skip('it is not snowing', () => {
  expect(inchesOfSnow()).toBe(0);
});

Link on off doc