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

test: use tighter "satisfies" typing in storybook #456

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

codeincontext
Copy link
Collaborator

See https://storybook.js.org/docs/writing-stories/typescript#using-satisfies-for-better-type-safety

  • Migrate all stories to satisfies type signature
  • Add types that were missing from stories
  • Remote props that aren't being used
  • Fix type error with MSW parameters

Copy link

vercel bot commented Dec 17, 2024

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

Name Status Preview Comments Updated (UTC)
oak-ai-lesson-assistant ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 17, 2024 10:04am

@@ -34,7 +32,6 @@ const components = {
export interface ChatMessagePartProps {
part: MessagePart;
inspect: boolean;
moderationModalHelpers: ModerationModalHelpers;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These helpers aren't used in the function

@codeincontext codeincontext requested a review from a team December 17, 2024 10:12
Copy link

Playwright test results

failed  1 failed
passed  13 passed
flaky  1 flaky
skipped  1 skipped

Details

report  Open report ↗︎
stats  16 tests across 15 suites
duration  10 minutes, 2 seconds
commit  6fdb9e7

Failed tests

Common persona - mobile › tests/aila-chat/full-romans.mobile.test.ts › Full aila flow with Romans fixture

Flaky tests

No persona › tests/modifiy-lesson.test.ts › Modify a lesson plan › Modify a lesson resource

Skipped tests

No persona › tests/auth.test.ts › authenticate through Clerk UI

@codeincontext codeincontext merged commit 36a533d into main Dec 17, 2024
21 of 22 checks passed
@codeincontext codeincontext deleted the test/types-satisfies branch December 17, 2024 10:41
@oak-machine-user
Copy link
Collaborator

🎉 This PR is included in version 1.19.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants