Question · JavaScript and React course · Module 13: Testing React
Test file naming conventions
Which test file naming convention does Jest recognise by default?
Answer options
- Files starting with test_ (e.g. test_button.js)
- Only files with the .jest.js extension
- Only files in a tests/ folder, with any name
- Files ending in .test.js or .spec.js in any folder
You can check the correct answer by solving this task in the CodeWorlds game.