-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: add GitHub Actions for Cypress tests and code quality checks #101
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Updated actions scripts so they would run on more recent node versions.
00676fb
to
120dd92
Compare
this is stupid.
added term to fight back error occuring in cypress run
bd86277
to
606de87
Compare
implemeting this: cypress-io/cypress#28061 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know I have to help here, but can't do it right now - let's do little cleanup first, I will return to it probably tomorrow
const TextInputWithDropdown = () => { | ||
interface TextInputWithDropdownProps { | ||
dataTestId?: string | ||
dataTestId2?: string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: we should not have to pass such props. Only id
would be enough
yarn.lock
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: yarn.lock to remove
@@ -52,12 +60,14 @@ const TextInputWithDropdown = () => { | |||
excludeDigits | |||
onClick={handleCountryInputClick} | |||
inputRef={inputRef} | |||
dataTestId={dataTestId} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: No need to pass dataTest this deep, we can do it directly in component
}: { | ||
value: string | ||
setIsDropdownActive: React.Dispatch<React.SetStateAction<boolean>> | ||
dataTestId?: string | undefined |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: We should not need such prop drilling here
const user = await prisma.user.findUnique({ | ||
where: { email }, | ||
include: { profile: true }, | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: We should check it earlier:
const user = await prisma.user.findUnique({
where: { email },
include: { profile: true },
})
if (!user) {
throw Error("User not found")
}
await prisma.profile.delete({
where: { id: user.profile.id },
})
app/api/test/profile/route.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: Why /test
path - we should add it normally in /api/profile/route.ts
No description provided.