Files
vercel-labs__portless/tests/e2e/src/nuxt.test.ts
Chris Tate 022eca2ed2 fix vite support and add e2e tests for 11 frameworks (#32)
* inject --port flag

* fix vite

* e2e tests

* more e2e tests

* fixes

* improvements
2026-02-22 09:08:17 -06:00

24 lines
602 B
TypeScript

import { describe, it, expect, afterAll } from "vitest";
import { startApp, fixtureDir, type E2EContext } from "./harness.js";
describe("nuxt", () => {
let ctx: E2EContext;
afterAll(async () => {
await ctx?.cleanup();
});
it("serves through the proxy", async () => {
ctx = await startApp({
name: "nuxt-test",
command: ["nuxt", "dev"],
cwd: fixtureDir("nuxt-app"),
proxyPort: 19006,
});
const res = await fetch(ctx.proxyUrl);
expect(res.status).toBe(200);
const body = await res.text();
expect(body).toContain("hello from nuxt");
});
});