chore: update esbuild (#151)

Update esbuild to 14.34, and remove esbuild-wasm from vendored depedencies.

Co-authored-by: Luca Casonato <hello@lcas.dev>
This commit is contained in:
Tyler Brostrom
2022-04-23 15:01:45 +02:00
committed by GitHub
co-authored by Luca Casonato
parent 3d63efc7a8
commit 4e1d4231f7
6 changed files with 19 additions and 3119 deletions
+14 -3
View File
@@ -1,4 +1,4 @@
import { assert, assertEquals, TextLineStream } from "./deps.ts";
import { assert, assertEquals, delay, TextLineStream } from "./deps.ts";
type FileTree = {
type: "file";
@@ -93,6 +93,7 @@ Deno.test({
const serverProcess = Deno.run({
cmd: ["deno", "run", "-A", "--no-check", "main.ts"],
stdout: "piped",
stderr: "inherit",
cwd: tmpDirName,
});
@@ -100,16 +101,26 @@ Deno.test({
.pipeThrough(new TextDecoderStream())
.pipeThrough(new TextLineStream());
let started = false;
for await (const line of lines) {
if (line.includes("Server listening on http://")) break;
console.log(line);
if (line.includes("Server listening on http://")) {
started = true;
break;
}
}
await lines.cancel();
if (!started) {
throw new Error("Server didn't start up");
}
await delay(500);
// Access the root page
const res = await fetch("http://localhost:8000");
await res.body?.cancel();
assertEquals(res.status, 200);
await lines.cancel();
serverProcess.kill("SIGTERM");
serverProcess.close();
});
+1
View File
@@ -6,3 +6,4 @@ export {
export {
TextLineStream,
} from "https://deno.land/std@0.129.0/streams/delimiter.ts";
export { delay } from "https://deno.land/std@0.129.0/async/delay.ts";