Skip to content

fix: React unit tests using vanilla file blocks #908

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

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

matthewlipski
Copy link
Collaborator

In the React unit tests, we use both file/image as well as reactFile/reactImage to refer to the file and image block. It's inconsistent, causing the unit tests to actually be testing the vanilla implementation of those blocks. This PR fixes that and updates the snapshots. The snapshots aren't meaningfully different, the React implementations just add a few HTML attributes, like contentEditable="false"to the file/image previews and stroke="currentColor" to icon SVGs.

Copy link

vercel bot commented Jul 4, 2024

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

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview Jul 4, 2024 11:54am
blocknote-website ✅ Ready (Inspect) Visit Preview Jul 4, 2024 11:54am

@matthewlipski matthewlipski changed the title Fixed React unit tests using vanilla file blocks fix: React unit tests using vanilla file blocks Jul 4, 2024
@matthewlipski matthewlipski merged commit c73daa6 into main Jul 11, 2024
5 checks passed
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