We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b102146 commit e145c11Copy full SHA for e145c11
1 file changed
packages/app/src/features/NoteEditor/tests/utils/utils.tsx
@@ -3,7 +3,7 @@ import { fireEvent, screen } from '@testing-library/react';
3
const getFirstTextNode = (node: Node): Text | null => {
4
if (node.nodeType === Node.TEXT_NODE) return node as Text;
5
6
- for (const child of node.childNodes) {
+ for (const child of Array.from(node.childNodes)) {
7
if (child.nodeType === Node.TEXT_NODE) {
8
return child as Text;
9
}
0 commit comments