Skip to content

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
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