mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 12:51:54 +00:00
## Summary - Updates WebKit from 75f6499 to eb92990 (latest release from oven-sh/webkit) - This brings in the latest WebKit improvements and fixes ## Test plan - [ ] Verify the build completes successfully - [ ] Run existing test suite to ensure no regressions 🤖 Generated with [Claude Code](https://claude.ai/code) --------- Co-authored-by: Claude Bot <claude-bot@bun.sh> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
40 lines
1.2 KiB
TypeScript
40 lines
1.2 KiB
TypeScript
import { describe, expect, it } from "bun:test";
|
|
import { cpSync } from "fs";
|
|
import { bunEnv, bunRun, isCI, isWindows, runBunInstall, tmpdirSync } from "harness";
|
|
import { join } from "path";
|
|
describe("next-auth", () => {
|
|
// This test OOMs on Windows.
|
|
it.todoIf(isCI && isWindows)(
|
|
"should be able to call server action multiple times using auth middleware #18977",
|
|
async () => {
|
|
const testDir = tmpdirSync("next-auth-" + Date.now());
|
|
|
|
cpSync(join(import.meta.dir, "fixture"), testDir, {
|
|
recursive: true,
|
|
force: true,
|
|
filter: src => {
|
|
if (src.includes("node_modules")) {
|
|
return false;
|
|
}
|
|
if (src.startsWith(".next")) {
|
|
return false;
|
|
}
|
|
return true;
|
|
},
|
|
});
|
|
|
|
await runBunInstall(bunEnv, testDir, { savesLockfile: false });
|
|
|
|
console.log(testDir);
|
|
const result = bunRun(join(testDir, "server.js"), {
|
|
AUTH_SECRET: "I7Jiq12TSMlPlAzyVAT+HxYX7OQb/TTqIbfTTpr1rg8=",
|
|
});
|
|
expect(result.stderr).toBe("");
|
|
expect(result.stdout).toBeDefined();
|
|
const lines = result.stdout?.split("\n") ?? [];
|
|
expect(lines[lines.length - 1]).toMatch(/request sent/);
|
|
},
|
|
90_000,
|
|
);
|
|
});
|