Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write unit tests for user registration and login #35

Open
wants to merge 1 commit into
base: dev/second-branch
Choose a base branch
from

Conversation

yashksaini-coder
Copy link
Member

Fixes #4

Add unit tests for user registration and login functionalities.

  • Tests: Add tests/auth.test.js to test POST /auth/register and POST /auth/login endpoints using Jest.
  • Dependencies: Add jest and supertest as dev dependencies in package.json. Add a test script to run Jest.
  • Configuration: Add jest.config.js to configure Jest for the Node.js environment.
  • CI: Modify .github/workflows/build.yaml to include steps for setting up Node.js, installing dependencies, and running Jest tests.

Fixes DEVRhylme-Foundation#4

Add unit tests for user registration and login functionalities.

* **Tests**: Add `tests/auth.test.js` to test `POST /auth/register` and `POST /auth/login` endpoints using Jest.
* **Dependencies**: Add `jest` and `supertest` as dev dependencies in `package.json`. Add a test script to run Jest.
* **Configuration**: Add `jest.config.js` to configure Jest for the Node.js environment.
* **CI**: Modify `.github/workflows/build.yaml` to include steps for setting up Node.js, installing dependencies, and running Jest tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Write Unit Tests for User Registration and Login
1 participant