mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
Remove Vercel config test
This commit is contained in:
parent
ef5c6f97e0
commit
88653e6bb7
@ -1,19 +0,0 @@
|
||||
import { readFile } from "node:fs/promises";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
describe("Vercel deployment configuration", () => {
|
||||
it("uses native Elysia routing and inherits the project function duration", async () => {
|
||||
const [vercelJson, entry] = await Promise.all([
|
||||
readFile(new URL("../../vercel.json", import.meta.url), "utf8"),
|
||||
readFile(new URL("../index.ts", import.meta.url), "utf8"),
|
||||
]);
|
||||
|
||||
const config = JSON.parse(vercelJson);
|
||||
expect(config.framework).toBe("elysia");
|
||||
expect(config).not.toHaveProperty("rewrites");
|
||||
expect(config).not.toHaveProperty("functions");
|
||||
expect(entry).toContain('import "elysia"');
|
||||
expect(entry).toContain('from "../dist/vercel.mjs"');
|
||||
expect(entry).not.toContain("maxDuration");
|
||||
});
|
||||
});
|
||||
Loading…
Reference in New Issue
Block a user