Skip to content

Commit 02d8cb6

Browse files
committed
Amend README instructions for navigating to exercise dir
1 parent 5c49b4d commit 02d8cb6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ If you have a suggestion to improve an exercise, an idea for a new exercise, or
1717
- A markdown file with a description of the task, an empty (or mostly empty) JavaScript file, and a set of tests.
1818
- A `solutions` directory that contains an example solution and the same test file with all of the tests unskipped.
1919

20-
To complete an exercise, you will need to go to the exercise directory with `cd exerciseName` in the terminal and run `npm test exerciseName.spec.js`. This should run the test file and show you the output. When you run a test for the first time, it will fail. This is by design! You must open the exercise file and write the code needed to get the test to pass.
20+
To complete an exercise, you will need to go to the exercise directory with `cd <path to file>` in the terminal and run `npm test exerciseName.spec.js`. For example, to go to the first Foundations exercise "helloWorld", you need to `cd foundations/01_helloWorld` then run `npm rest helloWorld`. This should run the test file and show you the output. When you run a test for the first time, it will fail. This is by design! You must open the exercise file and write the code needed to get the test to pass.
2121

2222
1. Some of the exercises have test conditions defined in their spec file as `test.skip` instead of `test`. This is intentional. Once all `test`s pass, you will change the next `test.skip` to `test` and test your code again. You will do this until all conditions are satisfied. **All tests must pass at the same time**, and you should not have any instances of `test.skip` in the spec file when you are finished with an exercise.
2323
1. Once you successfully finish an exercise, check the `solutions` directory within each exercise.

0 commit comments

Comments
 (0)