-
Notifications
You must be signed in to change notification settings - Fork 2
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(chore): add test execution #38
feat(chore): add test execution #38
Conversation
src/components/alert/alert.test.tsx
Outdated
describe("Alert", () => { | ||
it("renders an alert with a title and children", () => { | ||
// ARRANGE | ||
const { getByRole } = render( |
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.
Using screen.getByRole
is recommended by the creators, although it doesn't make a substantial difference 😄
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 will change it to match the docs! Thanks for bringing that up. I run through different examples to get the additional "toBeInTheDocument()" functions to work and I guess I messed it up.
.github/workflows/test.yaml
Outdated
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false # <--- this |
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.
What does that comment mean 🤔 ?
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.
tbh I copied it from all other actions. I will remove it for all of them 👍🏻
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.
lgtm 🎉
🎉 This PR is included in version 2.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
Adding Vitest and a new action for automated testing. This PR only adds one component test for testing reasons.
Checklist