We need to set up automated testing in our Express app to ensure that our code is bug-free and ships smoothly like a sailboat on a calm sea. Let’s use Mocha as our testing framework and Chai for assertions.
Acceptance Criteria:
Install Mocha and Chai as dev dependencies.
Set up a test script in our package.json.
Configure Mocha to look for tests in a test directory.
Write a simple test to ensure everything is working as expected
Description:
We need to set up automated testing in our Express app to ensure that our code is bug-free and ships smoothly like a sailboat on a calm sea. Let’s use Mocha as our testing framework and Chai for assertions.
Acceptance Criteria:
Install Mocha and Chai as dev dependencies. Set up a test script in our package.json. Configure Mocha to look for tests in a test directory. Write a simple test to ensure everything is working as expected