t3-code-android-nightly/.repos/alchemy-effect/packages/alchemy/test/Railway/Website/PropSurface.test.ts
Julius Marminge 6f9cea00ae
chore(refs): sync Effect and Alchemy references to 4.0.1 and beta.80 (#16170)
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-05 13:22:30 -07:00

62 lines
1.8 KiB
TypeScript

import * as Railway from "@/Railway";
import { describe, expect, it } from "alchemy-test";
describe(
"Railway.Website prop surfaces",
{ tags: ["unit", "provider:railway", "provider:railway:website", "local"] },
() => {
const _pins = [
() =>
Railway.Website.Vinext("Vinext", {
rootDir: "./app",
env: { GREETING: "Hello" },
memo: { lockfile: true },
assets: { notFoundHandling: "404-page" },
dev: {},
domain: "app.example.com",
}),
() =>
Railway.Website.Vite("V", {
assets: { notFoundHandling: "single-page-application" },
vite: { outDir: "build" },
}),
() =>
Railway.Website.Vite("V", {
// @ts-expect-error spa sugar replaced by assets.notFoundHandling
spa: true,
}),
() =>
Railway.Website.Waku("W", {
waku: { srcDir: "app" },
}),
() =>
Railway.Website.Waku("W", {
// @ts-expect-error srcDir lives on the waku bag
srcDir: "app",
}),
() =>
Railway.Website.Astro("A", {
astro: { output: "static" },
assets: { notFoundHandling: "404-page" },
}),
() =>
Railway.Website.Nuxt("N", {
nuxt: { app: { baseURL: "/docs/" } },
}),
() =>
Railway.Website.SvelteKit("S", {
kit: { paths: { base: "/docs" } },
}),
() =>
Railway.Website.SolidStart("So", {
nitro: { prerender: { routes: ["/"] } },
}),
() => Railway.Website.ReactRouter("R", {}),
() => Railway.Website.TanStackStart("T", {}),
];
it("rejects dissolved 1353 props at the type level", () => {
expect(_pins.length).toBeGreaterThan(0);
});
},
);