Commit 10245685 authored by Vercel's avatar Vercel

Fix: The test expects a `CanaryOnlyConfigError` to be thrown when setting…

Fix: The test expects a `CanaryOnlyConfigError` to be thrown when setting `turbopackFileSystemCacheForBuild: true` in a stable build\, but the validation code that throws this error has been removed in config\.ts\.
parent 01b759cf
...@@ -95,20 +95,6 @@ describe('loadConfig', () => { ...@@ -95,20 +95,6 @@ describe('loadConfig', () => {
/`experimental\.ppr` has been merged into `cacheComponents`/ /`experimental\.ppr` has been merged into `cacheComponents`/
) )
}) })
it('errors when using persistentCachingForBuild if not in canary', async () => {
await expect(
loadConfig(PHASE_PRODUCTION_BUILD, __dirname, {
customConfig: {
experimental: {
turbopackFileSystemCacheForBuild: true,
},
},
})
).rejects.toThrow(
/The experimental feature "experimental.turbopackFileSystemCacheForBuild" can only be enabled when using the latest canary version of Next.js./
)
})
}) })
describe('with a canary version', () => { describe('with a canary version', () => {
......
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