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.
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.
- Backend: Node.js, Express.js
- Testing Framework: Mocha
- Assertion Library: Chai
- Headless Browser Testing: Zombie.js
To get a local copy of this project up and running, follow these steps.
-
Clone the Repository
- Replace
MevinuMethdam/fcc-javascript-tests.git
with your actual repository URL.
git clone [https://github.com/MevinuMethdam/fcc-javascript-tests.git](https://github.com/MevinuMethdam/fcc-javascript-tests.git)
- Replace
-
Navigate to the Project Directory
cd fcc-javascript-tests
-
Install Dependencies
- This will install all the necessary packages like Express, Chai, and Mocha.
npm install
-
Run the Application and Tests
- This command starts the server and automatically runs the test suite.
npm start
The application will be available at
http://localhost:3000
.