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

Added integration tests for a few routes. #33

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open

Conversation

vamsiampolu
Copy link
Collaborator

@vamsiampolu vamsiampolu commented May 16, 2021

Changes

  • added eslint-config-standard-with-typescript and co instead of ts-standard for linting.
  • creating a tsconfig for testing.
  • setup firebase emulators and firebase emulator config.
  • removed firebase, relying on firebase-admin only.
  • setup integration tests for /healthcheck and /auth/register/:role endpoints.
  • setup lint-staged with lerna based on the docs provided.
  • updated to use dotenv-flow which supports .env.local and .env.test and so on instead of dotenv.
  • using firebase emulators:exec for a npm script called yarn test:integration:ci using firebase emulators:exec instead of firebase emulators:start

return await app.close()
})

it('POST /user/register/MedicalPractioner', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the endpoint. Please pull the latest changes.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 I will pull them down.

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.

2 participants