diff --git a/tests/shared/demoTest.ts b/tests/shared/demoTest.ts index e6f08103e3..213eaa7991 100644 --- a/tests/shared/demoTest.ts +++ b/tests/shared/demoTest.ts @@ -20,7 +20,7 @@ function ariaConvert(wrapper: CheerIO) { const matches = new Map(); function process(entry: CheerIOElement) { - if (entry.type === 'text') { + if (entry.type === 'text' || entry.type === 'comment') { return; } const { attribs, children } = entry;