Unverified Commit d3aabb7e authored by vercel-fleet-prod[bot]'s avatar vercel-fleet-prod[bot] Committed by GitHub

test(rspack): enable cases fixed by export handling

Co-authored-by: 's avatarTobias Koppers <1365881+sokra@users.noreply.github.com>
parent 4cc12cc5
......@@ -2,7 +2,7 @@ import { createSandbox } from 'development-sandbox'
import { outdent } from 'outdent'
import { runRscBuildErrorsTests } from './rsc-build-errors.util'
runRscBuildErrorsTests(({ next, isTurbopack, isRspack }) => {
runRscBuildErrorsTests(({ next, isTurbopack }) => {
describe("importing 'next/cache' APIs in a client component", () => {
test.each(['revalidatePath', 'revalidateTag', 'cacheLife', 'cacheTag'])(
'%s is not allowed',
......@@ -47,11 +47,9 @@ runRscBuildErrorsTests(({ next, isTurbopack, isRspack }) => {
expect(await session.getRedboxSource()).toInclude(
`Export whatever doesn't exist in target module`
)
} else if (isRspack) {
expect(await session.getRedboxDescription()).toInclude(
`'whatever' is not exported from 'next/root-params'`
)
} else {
// Like webpack, Rspack only warns about the missing export, so the
// error surfaces when the getter is called.
expect(await session.getRedboxDescription()).toInclude(
`whatever) is not a function`
)
......
......@@ -9121,19 +9121,19 @@
"runtimeError": false
},
"test/e2e/app-dir/rsc-basic/rsc-basic-blocking-ssr.test.ts": {
"passed": [],
"failed": [
"passed": [
"react@experimental - blockingSSR should opt into the react@experimental channel when blockingSSR is enabled"
],
"failed": [],
"pending": [],
"flakey": [],
"runtimeError": false
},
"test/e2e/app-dir/rsc-basic/rsc-basic-react-experimental.test.ts": {
"passed": [],
"failed": [
"passed": [
"react@experimental should opt into the react@experimental when enabling $flag"
],
"failed": [],
"pending": [],
"flakey": [],
"runtimeError": false
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment