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

test(turbopack): fix federation CI modes and runtime types

Co-authored-by: 's avatarTobias Koppers <1365881+sokra@users.noreply.github.com>
parent eab71fd9
...@@ -54,10 +54,14 @@ async function buildRemote( ...@@ -54,10 +54,14 @@ async function buildRemote(
}) })
} }
const isTurbopack = !process.env.IS_WEBPACK_TEST && !process.env.NEXT_RSPACK const isTurbopack = Boolean(process.env.IS_TURBOPACK_TEST)
// This test launches a local webpack server, which deployed fixtures cannot reach. // This test launches a local webpack server, which deployed fixtures cannot reach.
// Cache Components runs in an additional experimental mode that does not yet expose
// Turbopack's project-global federation endpoint.
const describeTurbopack = const describeTurbopack =
isTurbopack && !isNextDeploy ? describe : describe.skip isTurbopack && !process.env.__NEXT_CACHE_COMPONENTS && !isNextDeploy
? describe
: describe.skip
describeTurbopack('turbopack module federation with a webpack remote', () => { describeTurbopack('turbopack module federation with a webpack remote', () => {
const { next } = nextTestSetup({ const { next } = nextTestSetup({
......
...@@ -31,7 +31,7 @@ declare var CHUNK_LOAD_RETRY_MAX_JITTER_MS: number ...@@ -31,7 +31,7 @@ declare var CHUNK_LOAD_RETRY_MAX_JITTER_MS: number
declare const SUPPORT_COMPONENT_CHUNKS: boolean declare const SUPPORT_COMPONENT_CHUNKS: boolean
interface TurbopackBrowserBaseContext<M> extends TurbopackBaseContext<M> { interface TurbopackBrowserBaseContext<M> extends TurbopackBaseContext<M> {
R: ResolvePathFromModule S: ResolvePathFromModule
} }
const browserContextPrototype = const browserContextPrototype =
......
...@@ -12,7 +12,7 @@ createModuleWithDirectionFlag = true ...@@ -12,7 +12,7 @@ createModuleWithDirectionFlag = true
interface TurbopackNodeBuildContext interface TurbopackNodeBuildContext
extends TurbopackBaseContext<ModuleWithDirection> { extends TurbopackBaseContext<ModuleWithDirection> {
R: ResolvePathFromModule S: ResolvePathFromModule
x: ExternalRequire x: ExternalRequire
y: ExternalImport y: ExternalImport
C: typeof clearChunkCache C: typeof clearChunkCache
......
...@@ -18,7 +18,7 @@ if (!globalThis.__turbopack_runtime_modules__) { ...@@ -18,7 +18,7 @@ if (!globalThis.__turbopack_runtime_modules__) {
runtimeModules = globalThis.__turbopack_runtime_modules__ runtimeModules = globalThis.__turbopack_runtime_modules__
interface TurbopackNodeDevBuildContext extends TurbopackBaseContext<HotModule> { interface TurbopackNodeDevBuildContext extends TurbopackBaseContext<HotModule> {
R: ResolvePathFromModule S: ResolvePathFromModule
x: ExternalRequire x: ExternalRequire
y: ExternalImport y: ExternalImport
C: typeof clearChunkCache C: typeof clearChunkCache
......
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