Skip to content

Build test for GET /groups API endpoint.#54

Open
l-e-u wants to merge 2 commits into
dnvr-zero:mainfrom
l-e-u:test_suite_groups_api
Open

Build test for GET /groups API endpoint.#54
l-e-u wants to merge 2 commits into
dnvr-zero:mainfrom
l-e-u:test_suite_groups_api

Conversation

@l-e-u

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

Copy link
Copy Markdown
Contributor

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

vercel Bot commented Jun 26, 2023

Copy link
Copy Markdown

@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

vercel Bot commented Jun 26, 2023

Copy link
Copy Markdown

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

Comment thread test/routes/groups.test.js Outdated

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

@MarchandMD MarchandMD Jun 27, 2023

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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