Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ashokdey/nodejs-unit-testing
The repo for the code lab session of JSLovers meetup on 17th March 2019
https://github.com/ashokdey/nodejs-unit-testing
javascript jest mocha nodejs testing unit-testing workshop
Last synced: about 1 month ago
JSON representation
The repo for the code lab session of JSLovers meetup on 17th March 2019
- Host: GitHub
- URL: https://github.com/ashokdey/nodejs-unit-testing
- Owner: ashokdey
- License: mit
- Created: 2019-03-09T14:26:45.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T17:42:50.000Z (about 2 years ago)
- Last Synced: 2024-05-28T22:28:26.448Z (8 months ago)
- Topics: javascript, jest, mocha, nodejs, testing, unit-testing, workshop
- Language: JavaScript
- Homepage:
- Size: 1.06 MB
- Stars: 19
- Watchers: 2
- Forks: 16
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unit Testing in Node.js
The repo for the code lab session of JSLovers meet-up on 17th March 2019! :blush:
The repository contains both the tests using ~~`Mocha`~~1 and `Jest`, however I prefer Node.js testing using `Mocha` when it comes to `MongoDB` & `Mongoose`[![Build Status](https://travis-ci.org/ashokdey/nodejs-unit-testing.svg?branch=step-4-ci-cd)](https://travis-ci.org/ashokdey/nodejs-unit-testing) [![Coverage Status](https://coveralls.io/repos/github/ashokdey/nodejs-unit-testing/badge.svg?branch=step-4-ci-cd)](https://coveralls.io/github/ashokdey/nodejs-unit-testing?branch=step-4-ci-cd)
![Intro Image](.github/0.png)
## Agenda
- SDLC
- Testing
- Coding Phase & Unit Testing
- Unit Testing in Node.js
- Test Driven Development
- Code Coverage
- CI/CD (Read the [Guide](Setup-For-CI.md))## 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](Setup-For-CI.md) 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](https://drive.google.com/open?id=1y6jd2GDOaV2xDRk1y1lQSWF48X0e4pP4)