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 unit tests for 1 component (textAnswers) using Vitest and React Testing Library #210

Merged
merged 24 commits into from
Jul 4, 2024

Conversation

kobebuckley
Copy link
Contributor

@kobebuckley kobebuckley commented Jun 5, 2024

Initial setup for Vitest & React Testing Library

@kobebuckley kobebuckley linked an issue Jun 5, 2024 that may be closed by this pull request
Copy link

vercel bot commented Jun 5, 2024

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

Name Status Preview Comments Updated (UTC)
hierr ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 4, 2024 8:50pm

package.json Outdated
"lint-staged": "^13.1.2",
"postcss": "^8.4.31",
"prettier": "^2.8.4",
"prettier-plugin-tailwindcss": "^0.2.3",
"prisma": "^4.10.0",
"prisma": "4.10.0",
Copy link
Collaborator

Choose a reason for hiding this comment

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

The ^ got removed, can you add that back in?

package.json Outdated
},
"dependencies": {
"@next-auth/prisma-adapter": "^1.0.5",
"@prisma/client": "^4.10.0",
"@prisma/client": "4.10.0",
Copy link
Collaborator

Choose a reason for hiding this comment

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

The ^ is removed here, can you add it back in?

@@ -48,7 +48,7 @@ const InfoPopup = ({ title, PopupInfo }: InfoPopupProps) => {
>
<button
onClick={toggleMoreInformation}
className="absolute top-4 right-4 text-2xl lg:text-4xl"
className="absolute right-4 top-4 text-2xl lg:text-4xl"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you go through and switch these back to their original style order? If it's a prettier issue we can do another prettier PR. The unit tests should all still pass

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added /* prettier-ignore */

above that line so now it won't be affected by prettier.

Copy link
Collaborator

@avenmia avenmia left a comment

Choose a reason for hiding this comment

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

lgtm! 👍

@kobebuckley kobebuckley merged commit e994f71 into main Jul 4, 2024
4 checks passed
@kobebuckley kobebuckley deleted the 198-add-unit-tests branch July 4, 2024 23:08
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.

Add unit tests
2 participants