Code Monkey home page Code Monkey logo

unit-testing-london's Introduction

unit-testing

Before you start

Forking & cloning

First step is to fork this repo to your account, then clone it locally.

After you do that, add a remote to point to CodeYourFuture repo, that will allow you to update you forked copy when we update the repo with more exercises.

Example command: git remote add cyf [email protected]:CodeYourFuture/unit-testing-london.git

Installing

Run npm install

How to run the tests

To run the tests from the console, run the command: npm test.

To keep the tests running (auto updating when you save files), run the command: npm test -- --watch then press a to run all the tests and keep watching the files for changes. To quit the tests, type q.

Exercises

Run npm test -- --watch.

You should have lots of failing tests. Implement each function in src/functions.js so all the unit tests pass when you run npm test.

Tips

  • Don't copy and paste code. Write all code from beginning and make sure you understand what each line does.
  • If you are not sure what a method or function does Google it. MDN and Stack Overflow are great resources.
  • User the debugger to step through code execution and see what each line does if you are not sure.

unit-testing-london's People

Contributors

peterthompson avatar 40thieves avatar dmitrigrabov avatar edwigesalomeseri avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.