Open bogeychan opened 2 months ago
1.1.13
WSL Ubuntu
// test.test.ts import { Elysia } from "elysia"; import { describe, it, expect } from "bun:test"; describe("whelp", () => { it("yay", async () => { const app = new Elysia({ aot: false }) .trace((set) => { set.set.headers["yay"] = "yay"; }) .get("/", () => "yay"); const response = await app.handle(new Request("http://localhost/")); expect(response.headers.get("yay")).toEqual("yay"); }); });
bun test
test pass
test fail:
test.test.ts: 10 | }) 11 | .get("/", () => "yay"); 12 | 13 | const response = await app.handle(new Request("http://localhost/")); 14 | 15 | expect(response.headers.get("yay")).toEqual("yay"); ^ error: expect(received).toEqual(expected) Expected: "yay" Received: null
No response
node_modules
bun.lockb
yes
What version of Elysia is running?
1.1.13
What platform is your computer?
WSL Ubuntu
What steps can reproduce the bug?
bun test
What is the expected behavior?
test pass
What do you see instead?
test fail:
Additional information
No response
Have you try removing the
node_modules
andbun.lockb
and try again yet?yes