Commit 717175bf authored by Luke Sandberg's avatar Luke Sandberg

write tests, flip default the other way

parent f5cb77e7
...@@ -2209,7 +2209,7 @@ impl NextConfig { ...@@ -2209,7 +2209,7 @@ impl NextConfig {
NextMode::Development => self NextMode::Development => self
.experimental .experimental
.turbopack_use_whole_app_module_graph_in_dev .turbopack_use_whole_app_module_graph_in_dev
.unwrap_or(true), .unwrap_or(false),
NextMode::Build => true, NextMode::Build => true,
})) }))
} }
......
import { foo } from "./foo";
export default function Page() { export default function Page() {
/** @ts-ignore */
foo();
return <h1>Hello, Next.js!</h1>; return <h1>Hello, Next.js!</h1>;
} }
import { runBasicHmrTest } from './run-basic-hmr-test.util'
const nextConfig = {
basePath: '',
assetPrefix: '',
experimental: {
turbopackUseWholeAppModuleGraphInDev: true,
},
}
// Only run for Turbopack since this is a Turbopack-specific feature
;(process.env.IS_TURBOPACK_TEST ? describe : describe.skip)(
`HMR - basic with whole app graph, nextConfig: ${JSON.stringify(nextConfig)}`,
() => {
runBasicHmrTest(nextConfig)
}
)
import { runErrorRecoveryHmrTest } from './run-error-recovery-hmr-test.util'
const nextConfig = {
basePath: '',
assetPrefix: '',
experimental: {
turbopackUseWholeAppModuleGraphInDev: true,
},
}
// Only run for Turbopack since this is a Turbopack-specific feature
;(process.env.IS_TURBOPACK_TEST ? describe : describe.skip)(
`HMR - error recovery with whole app graph, nextConfig: ${JSON.stringify(nextConfig)}`,
() => {
runErrorRecoveryHmrTest(nextConfig)
}
)
import { runFullReloadHmrTest } from './run-full-reload-hmr-test.util'
const nextConfig = {
basePath: '',
assetPrefix: '',
experimental: {
turbopackUseWholeAppModuleGraphInDev: true,
},
}
// Only run for Turbopack since this is a Turbopack-specific feature
;(process.env.IS_TURBOPACK_TEST ? describe : describe.skip)(
`HMR - full reload with whole app graph, nextConfig: ${JSON.stringify(nextConfig)}`,
() => {
runFullReloadHmrTest(nextConfig)
}
)
import { runHotModuleReloadHmrTest } from './run-hot-module-reload-hmr-test.util'
const nextConfig = {
basePath: '',
assetPrefix: '',
experimental: {
turbopackUseWholeAppModuleGraphInDev: true,
},
}
// Only run for Turbopack since this is a Turbopack-specific feature
;(process.env.IS_TURBOPACK_TEST ? describe : describe.skip)(
`HMR - hot module reload with whole app graph, nextConfig: ${JSON.stringify(nextConfig)}`,
() => {
runHotModuleReloadHmrTest(nextConfig)
}
)
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