mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Update next-build.test.ts
This commit is contained in:
@@ -118,23 +118,15 @@ test(
|
||||
expect(bunBuild.exitCode).toBe(0);
|
||||
|
||||
console.time("[node] next build");
|
||||
const nodeBuild = Bun.spawn(["node", nextPath, "build"], {
|
||||
const nodeBuild = Bun.spawn(["node", nextPath, "build", "--debug"], {
|
||||
cwd: nodeDir,
|
||||
env: { ...bunEnv, NODE_NO_WARNINGS: "1", NODE_ENV: "production" },
|
||||
stdio: ["ignore", "pipe", "inherit"],
|
||||
stdio: ["ignore", "inherit", "inherit"],
|
||||
});
|
||||
await nodeBuild.exited;
|
||||
console.timeEnd("[node] next build");
|
||||
expect(nodeBuild.exitCode).toBe(0);
|
||||
|
||||
const bunCliOutput = normalizeOutput(await new Response(bunBuild.stdout).text());
|
||||
const nodeCliOutput = normalizeOutput(await new Response(nodeBuild.stdout).text());
|
||||
|
||||
console.log("bun", bunCliOutput);
|
||||
console.log("node", nodeCliOutput);
|
||||
|
||||
expect(bunCliOutput).toBe(nodeCliOutput);
|
||||
|
||||
const bunBuildDir = join(bunDir, ".next");
|
||||
const nodeBuildDir = join(nodeDir, ".next");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user