mardi 29 septembre 2020

Jest doesn't see tests described with test() function, but works ok with it()

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'
 ],

Aucun commentaire:

Enregistrer un commentaire