Giter Club home page Giter Club logo

npm-and-testing-basics's Introduction

#npm #js #moment-js #lodash #jest #master-in-software-engineering

NPM & Testing Basics

Version

Description

This pill is for learning the basics of the npm tool to handle the dependencies and how to test your code with Jest.

npm is a tool that manages the dependencies of our Javascript project, both in client and in backend (NodeJs).

Jest is a JavaScript test runner, that is, a JavaScript library for creating, running, and structuring tests to ensure your code is doing what you expected it to do.

This pill already includes the solution for the tests.

Index

Technologies used

* NPM Tool

* Javascript

* MomentJS Library

* Lodash Library

* Jest Library

Installation

First of all, once you have created and located to the folder where you want to place the local repository, you will have to clone the remote by running git clone https://github.com/assembler-school/npm-and-testing-basics.git.

Once the repository has been cloned, you will have to use NPM to install the project dependencies by running npm install. This will install Jest, Lodash and Moment libraries.

Usage

In order to run the test, you will have to run npm test to check that the tests are correctly fulfilled. This instruction is the same as running npx jest --coverage.

When running the test, a report including the results will be generated inside the coverage folder. Every time the test is runned, the report is updated.

Credits

This pill is a solution for assembler-school/npm-and-testing-basics repository developed by assembler-school

npm-and-testing-basics's People

Contributors

pau111111 avatar sanadriu 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.