TestFirst JavaScript is a multi-part series that provides practice to intermediate to advanced javascript concepts. The majority of concepts introduced in TestFirst have mini lessons and practice exercises in the workshops on learndot. However, there will be new concepts introduced in TestFirst that you will need to learn on your own by reading documentation (it's important to begin learning how to read documentation efficiently!)
- Forked & cloned the TestFirst repository.
- Installed node, testem, and a text editor.
- Fork the repository to your personal GitHub Account
- Clone the repository to your local machine
- Install
testemglobally
~ $ npm install testem -gAfter your install testem, run the testem command and copy/paste the link displayed in your terminal to your browser. If you get an error such as testem not found try the steps below.
If you can't install testem globally, there is a solution! Instead of installing testem globally, install it locally in your TestFirst directory. Every TestFirst repository on GitHub comes with a package.json file. We won't get into the details (for now) on the purpose of package.json because it will handle install testem locally.
In your TestFirst directory run the command:
$ npm installAfter the installation is completed, run the command:
$ npm testThe npm test command will run the local installation of testem! If you installed testem locally with this approach, instead of running testem run npm test whenever you want to launch testem. In addition, whenever clone a new TestFirst repository to your local machine (such as TestFirst-Part-2 or Checkpoints), you need to run npm install first, afterwards you can run npm test.