Michelle's Portfolio

Find Me
DEMO
Issue Tracker

Objective

Build a microservice that fulfills the user stories and passes all the tests provided by FreeCodeCamp

Original Challenge: https://www.freecodecamp.org/learn/quality-assurance/quality-assurance-projects/issue-tracker

Assignment

  1. Complete the necessary routes in /routes/api.js.
  2. Create all of the functional tests in tests/2_functional-tests.js.

Writing tests/2_functional-tests.js

  • POST /api/issues/{project}:
    • Create an issue with every field
    • Create an issue with only required fields
    • Create an issue with missing required fields
  • GET /api/issues/{project}:
    • View issues on a project
    • View issues on a project with one filter
    • View issues on a project with multiple filters
  • PUT /api/issues/{project}:
    • Update one field on an issue
    • Update multiple fields on an issue
    • Update an issue with missing _id
    • Update an issue with no fields to update
    • Update an issue with an invalid _id
  • DELETE /api/issues/{project}
    • Delete an issue
    • Delete an issue with an invalid _id
    • Delete an issue with missing _id

Michelle Chai © 2021-2024