test: island with wasm-esbuild (#1082)

This commit is contained in:
hashrock
2023-03-21 19:55:59 +09:00
committed by GitHub
parent 7b036f0af8
commit 673c161aee
3 changed files with 83 additions and 0 deletions
+16
View File
@@ -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 });
+4
View File
@@ -0,0 +1,4 @@
// Simulate Deno Deploy environment
//@ts-ignore: Remove Deno.run for simulating deno deploy env
delete Deno.run;