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

(ignore) yarn test:unit issues: sketchFromKclValue error with UserVal, update to He not wrapped in act(...) #4243

Closed
wants to merge 4 commits into from

Conversation

guptaarnav
Copy link
Collaborator

Noticed some errors with yarn test:unit.

In MemoryPane, there were errors when trying to call sketchFromKclValue on a UserVal wrapping a Sketch. I saw there is discussion about overhauling KclValues in #1130, so this is likely a short-lived change, but it does seem to address the test failures that were previously happening from MemoryPane.test.tsx.

(apologies for the @ts_ignore, the KclValue autogenerated type def does not include type union with Function, even though a Function is fair game apparently and needs to be handled.)

Also fixed a minor error where tests were not properly awaiting changes to the tests for UserSidebarMenu.

Copy link

qa-wolf bot commented Oct 19, 2024

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

Copy link

vercel bot commented Oct 19, 2024

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

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Oct 19, 2024 5:57am

@guptaarnav guptaarnav closed this Oct 19, 2024
@guptaarnav guptaarnav deleted the kclvalue-got-userval branch October 19, 2024 05:41
@guptaarnav
Copy link
Collaborator Author

sorry, ignore this.

@guptaarnav guptaarnav changed the title yarn test:unit issues: sketchFromKclValue error with UserVal, update to He not wrapped in act(...) (ignore) yarn test:unit issues: sketchFromKclValue error with UserVal, update to He not wrapped in act(...) Oct 19, 2024
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.

1 participant