Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
484 B
Text
23 lines
484 B
Text
const { unstable_dev } = require("wrangler");
|
|
|
|
describe("Worker", () => {
|
|
let worker;
|
|
|
|
beforeAll(async () => {
|
|
worker = await unstable_dev("src/index.js", {
|
|
experimental: { disableExperimentalWarning: true },
|
|
});
|
|
});
|
|
|
|
afterAll(async () => {
|
|
await worker.stop();
|
|
});
|
|
|
|
it("should return Hello World", async () => {
|
|
const resp = await worker.fetch();
|
|
if (resp) {
|
|
const text = await resp.text();
|
|
expect(text).toMatchInlineSnapshot(`"Hello World!"`);
|
|
}
|
|
});
|
|
});
|