Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Unit Testing Introducing Unit Testing Running an Automated Test

Hailee Miu
Hailee Miu
807 Points

Challenge vs video do not match

At 1:26 in the video, it says to use mocha test. But the challenge says that is wrong.

2 Answers

Mike Hatch
Mike Hatch
14,940 Points

This was a little tricky since the video covered testing the folder. (Look closely at Guil's working files.) The Challenge is asking you to test a single file. You type out the actual file name. If the Challenge had the file contained within a folder then you could test the folder name like in the video.

You won't always be testing something called 'test'. For the challenge you are testing 'tests.js'