An open API service indexing awesome lists of open source software.

https://github.com/mevinumethdam/fcc-javascript-tests

A project demonstrating JavaScript unit and functional testing principles using Mocha and Chai, as part of the freeCodeCamp Quality Assurance curriculum.
https://github.com/mevinumethdam/fcc-javascript-tests

chai express freecodecamp-project javascript mocha nodejs quality-assurance zombiejs

Last synced: 2 months ago
JSON representation

A project demonstrating JavaScript unit and functional testing principles using Mocha and Chai, as part of the freeCodeCamp Quality Assurance curriculum.

Awesome Lists containing this project

README

          

# Quality Assurance and Testing with Chai (freeCodeCamp Project)

> This repository contains the completed challenges for the "Quality Assurance and Testing with Chai" module from the freeCodeCamp Quality Assurance curriculum. It demonstrates the use of various assertion methods to perform unit and functional testing in a Node.js environment.

## About The Project

This project involves a series of challenges designed to teach the fundamentals of software testing. Starting with a boilerplate Node.js and Express application, the goal is to fix a suite of pre-written tests by implementing the correct assertion methods from the Chai library. The tests are run using the Mocha test framework.

The challenges cover everything from basic assertions (`isNull`, `isDefined`) to more complex functional tests involving API endpoints and headless browser testing with Zombie.js.

## Technologies Used

* **Backend:** Node.js, Express.js
* **Testing Framework:** Mocha
* **Assertion Library:** Chai
* **Headless Browser Testing:** Zombie.js

## Getting Started

To get a local copy of this project up and running, follow these steps.

1. **Clone the Repository**
* Replace `MevinuMethdam/fcc-javascript-tests.git` with your actual repository URL.
```sh
git clone [https://github.com/MevinuMethdam/fcc-javascript-tests.git](https://github.com/MevinuMethdam/fcc-javascript-tests.git)
```

2. **Navigate to the Project Directory**
```sh
cd fcc-javascript-tests
```

3. **Install Dependencies**
* This will install all the necessary packages like Express, Chai, and Mocha.
```sh
npm install
```

4. **Run the Application and Tests**
* This command starts the server and automatically runs the test suite.
```sh
npm start
```
The application will be available at `http://localhost:3000`.