Skip to content

Conversation

@l-e-u
Copy link
Contributor

@l-e-u l-e-u commented Jun 26, 2023

What does this PR do?

Includes a test file for the GET /groups endpoint.

How does this PR accomplish that?

Groups routes has 2 endpoints so far GET /groups & GET /groups/id, this test can only test against the GET /groups. I can update further as more endpoints are developed.

EDIT: this is regarding issue #46

@vercel
Copy link

vercel bot commented Jun 26, 2023

@l-e-u is attempting to deploy a commit to the dnvr-zero Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Jun 26, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
dnvr-zero-be ❌ Failed (Inspect) Jun 26, 2023 9:01pm


// before all the route tests, connect to the database
beforeAll(async () => {
await mongoose.connect(process.env.DB_CONNECTION, {
Copy link
Contributor

@MarchandMD MarchandMD Jun 27, 2023

Choose a reason for hiding this comment

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

we're setting up a test database, which will rely on TEST_DB_CONNECTION ENV variable.

Hold until test database established for project

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good 👍

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