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

E2E test for project creation #32

Merged
merged 2 commits into from
Jan 31, 2024
Merged

E2E test for project creation #32

merged 2 commits into from
Jan 31, 2024

Conversation

maxyuri13
Copy link
Collaborator

  • Verify the project creation functionality!

.send(createProjectBody)

expect(createProjectResponse.statusCode).toEqual(201)
expect(createProjectResponse.body.project).toBeDefined()
Copy link
Owner

Choose a reason for hiding this comment

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

Let's try to check some field inside, if the response is something linke

{ project: {} }

the test will work

throw error
}

expect(error.message).toContain('ResourceNotFoundError')
Copy link
Owner

Choose a reason for hiding this comment

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

You're never going to get it; your tests are making it look like it's working.

@MatheusSanchez MatheusSanchez merged commit 85ed040 into master Jan 31, 2024
2 checks passed
Copy link

@MatheusSanchez MatheusSanchez deleted the SFD-72 branch February 4, 2024 21:50
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