Code Monkey home page Code Monkey logo

jest-testing's Introduction

๐Ÿงช๐Ÿ‘จโ€๐Ÿ’ป Jest Testing

A Jest-Testing Basics Project

Download this repository | Report A Bug | Fork It

Table of Contents

๐Ÿงฌ The Project Brief

This project purpose was to learn the basics of Jest Testing by completing 5 different challenges

This is a project to be included by all students at Microverse as part of the Javascript module.

๐Ÿ’ก The Project Specific

Having just read about testing in Javascript in this project we learn how to implement our reading in the form of Jest testing. In this project we all given the objective to create five functions and create five separate test scripts for those functions, these functions include:

  • Capitalise: Capitalises a string
  • Reverse string: Reverses a string (amazing!)
  • Calculator: Returns an object with the basic operations add, subtract, multiply, divide
  • Caesar-cypher: Takes a string and shifts letters up by the given number
  • Array analysis: Takes an array of numbers and returns an object with average, min, max, and length.

๐Ÿ”ฌ Tools & Technology Used

Languages & Frameworks

  • Javascript
  • Jest testing library 26.6.1

Package Management

  • NPM

Linters & Quality Control

๐Ÿ’พ Setup & Use

Setup

  1. Time to ensure you've got Node and NPM installed. If you do, skip this step. Otherwise, head on over to nodejs's website to download node with npm.

  2. Time to go back to the project! Open your terminal (either in your text editor or otherwise) and 'cd' (i.e. navigate) to the root of this repo.

  3. Time to install Webpack! Ensuring you're at this repo's root, enter the following command into your terminal. This will install webpack locally (to this project only):

     npm install --save-dev webpack
    
  4. Finally, once webpack has installed successfully, run the following command to install all of the projects dependencies:

     npm install
    

Usage

There are a few commands that you can use interact with the project:

  • $npm run test - This will indicate jest to find your .test.js files and run the tests.
  • $npm run jest-watch - This will dynamically run tests so that any updates (on save) will be retested by Jest automatically.

๐Ÿ”ฑ Contributions, Issues and Forking

Contributions, issues and feature requests are more than welcome!

If you have any problems running or setting up this project, please submit it as a bug on the issues page right away!

If you want to make your own changes, modifications or improvements, go ahead and Fork it!

  1. Fork it
  2. Create your working branch (git checkout -b [choose-a-name])
  3. Commit your changes (git commit -am 'what this commit will fix/add/improve')
  4. Push to the branch (git push origin [chosen-name])
  5. Create a new Pull Request

๐Ÿ‘จ๐Ÿฝโ€๐Ÿ’ป ๐Ÿ’‚๐Ÿฝโ€โ™‚๏ธ Creators

Alexis Sanchez - Github

Rory Hellier - Github

๐Ÿ‘๐Ÿฝ Show Your Support!

Give a โญ๏ธ if you like this project!

jest-testing's People

Contributors

psiale avatar rhelli avatar

Stargazers

 avatar

Watchers

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