This repository contains automated tests for the GraphQL API focusing on Users and their Albums, using Jest and cross-fetch. The project also includes a CI/CD workflow configured with GitHub Actions.
git clone https://github.com/DanielIvtimov/personal-programmer.git cd Personal-ProgrammerApp/server
npm install
npm test
- The file
.github/workflows/ci.yml
is configured for GitHub Actions. - The workflow is triggered on every push and pull request to the
main
branch. - Steps:
- Checkout the repository
- Set up Node.js
- Install dependencies (
npm install
) - Run tests (
npm test
)
- If the tests pass, the workflow shows a green status; otherwise, it shows a failure.
Personal-ProgrammerApp/ ├─ server/ │ ├─ tests/ │ │ ├─ users/ │ │ │ ├─ user.test.js │ │ │ ├─ mutations/ │ │ │ │ ├─ user.mutation.test.js │ │ │ │ └─ user.mutationErrors.test.js │ │ └─ albums/ │ │ └─ albums.test.js │ ├─ package.json │ └─ package-lock.json └─ .github/ └─ workflows/ └─ ci.yml