Repository navigation
README: Make more consistent with other repos - #230
Merged
Merged
Conversation
01zulfi
requested changes
Feb 17, 2022
| Each exercise includes 3 files: a markdown file with a description of the task, an empty (or mostly empty) JavaScript file, and a set of tests. To complete an exercise, you'll 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 first run a test, it will fail. This is by design! You must open the exercise file and write the code needed to get the test to pass. Some of the exercises have test conditions defined in their spec file that are defined as 'test.skip' compared to 'test'. This is purposeful. After you pass your first 'test', you will change the next 'test.skip' to an 'test' and test your code again. You'll do this until all conditions are satisfied. **ALL TESTS MUST PASS AT THE SAME TIME.** | ||
| 1. Before you start you should have a few things installed on your machine: | ||
| * **NPM**. We should have installed NPM already in our [Installing Node.js](https://www.theodinproject.com/paths/foundations/courses/foundations/lessons/installing-node-js) lesson. Just in case you need to check, type `npm --version` in your terminal. If you get back `Command 'npm' not found, but can be installed with:`, **do not follow the instructions in the terminal** to install with `apt-get` as this causes permission issues. Instead, go back to the installation lesson and install Node with NVM by following the instructions there. | ||
| * **Jest**. After cloning this repository to your local machine, go into the newly created directory (`cd javascript-exercises`) and run `npm install`. This will install Jest and set up the testing platform based on our preconfigured settings. |
Member
There was a problem hiding this comment.
This line assumes that the user has already forked and clone with the statement "go into the newly created repository", while it is the next instruction that directs user to fork and clone this repository.
Contributor
Author
There was a problem hiding this comment.
Yeah I saw that other PR get put up and meant to check it to merge it myself but never got around to it, so thank you for merging theirs to give them the contribution as that's what I had wanted to happen.
And good catch on that, will update that momentarily.
01zulfi
approved these changes
Feb 17, 2022
d2038
pushed a commit
to d2038/javascript-exercises
that referenced
this pull request
May 22, 2024
…ye-patch-1 README: Make more consistent with other repos
Oussama5379
added a commit
to Oussama5379/javascript-exercises
that referenced
this pull request
Feb 1, 2025
…ye-patch-1 README: Make more consistent with other repos
FredTheJanitor
pushed a commit
to FredTheJanitor/javascript-exercises
that referenced
this pull request
May 29, 2026
…ye-patch-1 README: Make more consistent with other repos
FredTheJanitor
pushed a commit
to FredTheJanitor/javascript-exercises
that referenced
this pull request
May 29, 2026
…ye-patch-1 README: Make more consistent with other repos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Made updates to the README of this repo to be a little more consistent with other repos, and to include a link to the contributing guide.