Skip to content

Commit 9a7c4b2

Browse files
committed
chore: improve playground to test .mdx suffix
1 parent bfc432f commit 9a7c4b2

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

packages/playground/use-theme-doc/__tests__/hmr.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ test('hmr: edit md file content', async ({ page, fsUtils, testPlayground }) => {
109109
await counterButton.click()
110110
await expect(counterStateText).toHaveText('Counter component: 1.')
111111

112-
fsUtils.editFile('pages/md-test1$.md', (str) => {
112+
fsUtils.editFile('pages/md-test1$.mdx', (str) => {
113113
return str.replace('# Heading one', '# Heading edited')
114114
})
115115

File renamed without changes.

0 commit comments

Comments
 (0)