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' ...@@ -2,7 +2,7 @@ import { createSandbox } from 'development-sandbox'
import { outdent } from 'outdent' import { outdent } from 'outdent'
import { runRscBuildErrorsTests } from './rsc-build-errors.util' import { runRscBuildErrorsTests } from './rsc-build-errors.util'
runRscBuildErrorsTests(({ next, isTurbopack, isRspack }) => { runRscBuildErrorsTests(({ next, isTurbopack }) => {
describe("importing 'next/cache' APIs in a client component", () => { describe("importing 'next/cache' APIs in a client component", () => {
test.each(['revalidatePath', 'revalidateTag', 'cacheLife', 'cacheTag'])( test.each(['revalidatePath', 'revalidateTag', 'cacheLife', 'cacheTag'])(
'%s is not allowed', '%s is not allowed',
...@@ -47,11 +47,9 @@ runRscBuildErrorsTests(({ next, isTurbopack, isRspack }) => { ...@@ -47,11 +47,9 @@ runRscBuildErrorsTests(({ next, isTurbopack, isRspack }) => {
expect(await session.getRedboxSource()).toInclude( expect(await session.getRedboxSource()).toInclude(
`Export whatever doesn't exist in target module` `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 { } else {
// Like webpack, Rspack only warns about the missing export, so the
// error surfaces when the getter is called.
expect(await session.getRedboxDescription()).toInclude( expect(await session.getRedboxDescription()).toInclude(
`whatever) is not a function` `whatever) is not a function`
) )
......
...@@ -9121,19 +9121,19 @@ ...@@ -9121,19 +9121,19 @@
"runtimeError": false "runtimeError": false
}, },
"test/e2e/app-dir/rsc-basic/rsc-basic-blocking-ssr.test.ts": { "test/e2e/app-dir/rsc-basic/rsc-basic-blocking-ssr.test.ts": {
"passed": [], "passed": [
"failed": [
"react@experimental - blockingSSR should opt into the react@experimental channel when blockingSSR is enabled" "react@experimental - blockingSSR should opt into the react@experimental channel when blockingSSR is enabled"
], ],
"failed": [],
"pending": [], "pending": [],
"flakey": [], "flakey": [],
"runtimeError": false "runtimeError": false
}, },
"test/e2e/app-dir/rsc-basic/rsc-basic-react-experimental.test.ts": { "test/e2e/app-dir/rsc-basic/rsc-basic-react-experimental.test.ts": {
"passed": [], "passed": [
"failed": [
"react@experimental should opt into the react@experimental when enabling $flag" "react@experimental should opt into the react@experimental when enabling $flag"
], ],
"failed": [],
"pending": [], "pending": [],
"flakey": [], "flakey": [],
"runtimeError": false "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