Commit 7e1f36c6 authored by Tobias Koppers's avatar Tobias Koppers Committed by Tobias Koppers

test: enable turbopackFilesystemCacheInDev for .next deletion test

- Fix config key: turbopackFileSystemCacheForDev (not turbopackFilesystemCacheInDev)
- Set TURBO_ENGINE_IGNORE_DIRTY=1 via env option so filesystem cache
  works even when the git repo is dirty
- Wait 5s after error detection for persistent cache errors to settle
- Use retry for initial page loads since server may need time to rebuild
parent 8ff17bf9
...@@ -39,6 +39,10 @@ describe('delete-dot-next-dir', () => { ...@@ -39,6 +39,10 @@ describe('delete-dot-next-dir', () => {
const { next } = nextTestSetup({ const { next } = nextTestSetup({
files: __dirname, files: __dirname,
skipStart: true, skipStart: true,
env: {
// Enable filesystem cache even when the git repo is dirty
TURBO_ENGINE_IGNORE_DIRTY: '1',
},
}) })
beforeEach(async () => { beforeEach(async () => {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
*/ */
const nextConfig = { const nextConfig = {
experimental: { experimental: {
turbopackFilesystemCacheInDev: true, turbopackFileSystemCacheForDev: true,
}, },
} }
......
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