Skip to content

Commit 09adb31

Browse files
committed
test: verify react compiler
1 parent c8fa782 commit 09adb31

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/plugin-rsc/e2e/basic.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@ test.describe('dev-react-compiler', () => {
5555
})
5656
defineTest(f)
5757

58-
// TODO: actually verify compiler is enabled in client environment
58+
test('verify react compiler', async ({ page }) => {
59+
await page.goto(f.url())
60+
await waitForHydration(page)
61+
const res = await page.request.get(f.url('src/routes/client.tsx'))
62+
expect(await res.text()).toContain('react.memo_cache_sentinel')
63+
})
5964
})
6065

6166
test.describe('build-react-compiler', () => {

0 commit comments

Comments
 (0)