Skip to main content
Testing & QA Output Prediction Easy +10 XP

Test File Naming

Which file naming convention does Jest auto-discover?

Testing & QARead-only
// Which filename does Jest pick up automatically?

What is the output?

Show answer and explanation

Answer: app.test.js or app.spec.js

Jest automatically finds files ending in .test.js or .spec.js, or files inside __tests__ directories.

Hint: Jest looks for .test or .spec extensions.

What this challenge tests

Output Prediction in Testing & QA: jest, configuration.

Related challenges