Skip to content

Commit e961f70

Browse files
committed
test: minified rsc error on canary
1 parent 9c40c6b commit e961f70

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
expect,
88
test,
99
} from '@playwright/test'
10+
import React from 'react'
1011
import { x } from 'tinyexec'
1112
import { normalizePath, type Rollup } from 'vite'
1213
import { type Fixture, useCreateEditor, useFixture } from './fixture'
@@ -1277,6 +1278,12 @@ function defineTest(f: Fixture) {
12771278
await expect(page.getByTestId('action-error-boundary')).toContainText(
12781279
'(Error: boom!)',
12791280
)
1281+
} else if (/canary|experimental/.test(React.version)) {
1282+
// this is now minified on main
1283+
// https://github.com/facebook/react/pull/36277
1284+
await expect(page.getByTestId('action-error-boundary')).toContainText(
1285+
'(Error: Minified React error #441',
1286+
)
12801287
} else {
12811288
await expect(page.getByTestId('action-error-boundary')).toContainText(
12821289
'(Error: An error occurred in the Server Components render.',

0 commit comments

Comments
 (0)