Skip to content

Commit

Permalink
Enhance test for HTML class attribute changes by adding validation fo…
Browse files Browse the repository at this point in the history
…r inserted classes
  • Loading branch information
1aron committed Dec 17, 2024
1 parent 18c4f0e commit 916845e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/tests/extract/watch/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ it('change html file class attr and update', async () => {
waitForDataMatch(child, (data) => data.includes('watching source changes'), () => {
fs.writeFileSync(HTMLFilepath, originHTMLText.replace('hmr-test', 'text:underline'))
}),
waitForDataMatch(child, (data) => data.includes(`classes inserted`)),
waitForDataMatch(child, (data) => data.includes('exported'))
])
const fileCSSText = fs.readFileSync(virtualCSSFilepath, { encoding: 'utf8' })
/** There is no recycling mechanism during the development */
expect(fileCSSText).toContain(cssEscape('text:underline'))
}, 120000)

Expand Down

0 comments on commit 916845e

Please sign in to comment.