Skip to content

The repo for the code lab session of JSLovers meetup on 17th March 2019

License

Notifications You must be signed in to change notification settings

ashokdey/nodejs-unit-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1a486cb Β· May 19, 2020

History

34 Commits
Mar 18, 2019
Mar 17, 2019
Mar 16, 2019
Mar 16, 2019
Mar 11, 2019
Mar 9, 2019
Mar 16, 2019
Mar 9, 2019
May 19, 2020
Mar 16, 2019
Mar 16, 2019
Mar 16, 2019

Repository files navigation

Unit Testing in Node.js

The repo for the code lab session of JSLovers meet-up on 17th March 2019! 😊 The repository contains both the tests using Mocha1 and Jest, however I prefer Node.js testing using Mocha when it comes to MongoDB & Mongoose

Build Status Coverage Status

Intro Image

Agenda

  • SDLC
  • Testing
  • Coding Phase & Unit Testing
  • Unit Testing in Node.js
  • Test Driven Development
  • Code Coverage
  • CI/CD (Read the Guide)

A note on branches

I planned to carry out the workshop in 4 steps. hence you can find 4 extra branches for this repo. Each branch contains the codebase in progressive steps. Codebase is splitted into

  • Step 1: Testing Functions
    • Normal Functions
    • Callbacks Functions
    • Promise Functions
    • async- await Functions
  • Step 2: Testing Classes
  • Step 3: How about TDD?
  • Step 4: Let's setup CI/CD (Refer this Guide if you forget the steps)

Notes

  • 1Due to lack of time I dropped the idea of Mocha, let's see when I can publish Mocha stuff
  • Link to slides, videos & images

About

The repo for the code lab session of JSLovers meetup on 17th March 2019

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published