Skip to content

Commit 4ef112b

Browse files
committed
test: no client hmr on NODE_ENV=production
1 parent 10bc954 commit 4ef112b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ test.describe('dev-production', () => {
5050
env: { NODE_ENV: 'production' },
5151
},
5252
})
53-
defineTest(f)
53+
defineTest(f, 'dev-production')
5454
})
5555

5656
test.describe('build-development', () => {
@@ -225,7 +225,7 @@ test.describe(() => {
225225
})
226226
})
227227

228-
function defineTest(f: Fixture, variant?: 'no-ssr') {
228+
function defineTest(f: Fixture, variant?: 'no-ssr' | 'dev-production') {
229229
const waitForHydration: typeof waitForHydration_ = (page) =>
230230
waitForHydration_(page, variant === 'no-ssr' ? '#root' : 'body')
231231

@@ -264,7 +264,7 @@ function defineTest(f: Fixture, variant?: 'no-ssr') {
264264
})
265265

266266
test('client hmr', async ({ page }) => {
267-
test.skip(f.mode === 'build')
267+
test.skip(f.mode === 'build' || variant === 'dev-production')
268268

269269
await page.goto(f.url())
270270
await waitForHydration(page)

0 commit comments

Comments
 (0)