1

When describing tests using:

it('foo', () => {...})

all tests pass.

But when I change the test to

test('foo', () => {...})

Jest fails with "Your test suite must contain at least one test."

Found a similar question, but nothing worked.

Using latest Jest, have the following presets in babel.config.js:

 'presets': [
    '@babel/preset-env',
    '@babel/preset-react'
 ],
skyboyer
  • 22,209
  • 7
  • 57
  • 64
Spadar Shut
  • 15,111
  • 5
  • 47
  • 54

0 Answers0