test: island with wasm-esbuild (#1082)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// Simulate Deno Deploy environment
|
||||
|
||||
/// <reference no-default-lib="true" />
|
||||
/// <reference lib="dom" />
|
||||
/// <reference lib="dom.iterable" />
|
||||
/// <reference lib="dom.asynciterable" />
|
||||
/// <reference lib="deno.ns" />
|
||||
|
||||
import "./polyfill_deno_deploy.ts";
|
||||
import { start } from "$fresh/server.ts";
|
||||
import routes from "./fresh.gen.ts";
|
||||
import options from "./options.ts";
|
||||
|
||||
const experimentalDenoServe = Deno.args.includes("--experimental-deno-serve");
|
||||
|
||||
await start(routes, { ...options, experimentalDenoServe });
|
||||
@@ -0,0 +1,4 @@
|
||||
// Simulate Deno Deploy environment
|
||||
|
||||
//@ts-ignore: Remove Deno.run for simulating deno deploy env
|
||||
delete Deno.run;
|
||||
Reference in New Issue
Block a user