Valid file test names

Rename the test to abc.test.js. Jest still find it because of the default regex. Now try all other files extention that Jest by default supports:

  • abc.spec.js
  • spec.js
  • __tests__/abc.js

Note: __tests__ folder can be inside other folders at any depth, it does not need to be at the project root.

Author: Jaga Santagostino

results matching ""

    No results matching ""