diff --git a/test/integration/next-pages/test/next-build.test.ts b/test/integration/next-pages/test/next-build.test.ts index 2f9bd3735e..23f9cc55f7 100644 --- a/test/integration/next-pages/test/next-build.test.ts +++ b/test/integration/next-pages/test/next-build.test.ts @@ -183,8 +183,10 @@ test( const toRemove = [ // these have timestamps and absolute paths in them "trace", + "trace-build", "cache", "required-server-files.json", + "required-server-files.js", // these have "signing keys", not sure what they are tbh "prerender-manifest.json", // these are similar but i feel like there might be something we can fix to make them the same @@ -192,10 +194,17 @@ test( "next-server.js.nft.json", // this file is not deterministically sorted "server/pages-manifest.json", + "pages-manifest.json", + // non-deterministic between bun and node builds + "build-manifest.json", + "server-reference-manifest.json", + "server-reference-manifest.js", + // lock file created during build + "lock", ]; for (const key of toRemove) { - rmSync(join(bunBuildDir, key), { recursive: true }); - rmSync(join(nodeBuildDir, key), { recursive: true }); + rmSync(join(bunBuildDir, key), { recursive: true, force: true }); + rmSync(join(nodeBuildDir, key), { recursive: true, force: true }); } console.log("Hashing files...");