TypeCellOS / BlockNote

A React Rich Text Editor that's block-based (Notion style) and extensible. Built on top of Prosemirror and Tiptap.
https://www.blocknotejs.org/
Mozilla Public License 2.0
5.91k stars 386 forks source link

fix: React unit tests using vanilla file blocks #908

Open matthewlipski opened 3 days ago

matthewlipski commented 3 days ago

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.

vercel[bot] commented 3 days ago

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