Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/packup/build_test.ts

📦 Zero-config web application packager in Deno
Go to Latest
File
import { assertEquals } from "./test_deps.ts";import { join } from "./deps.ts";import { main } from "./cli.ts";
Deno.test("cli.ts build <entrypoint> --out-dir <path> -- builds the site into given path", async () => { const tempdir = await Deno.makeTempDir(); assertEquals( await main(["build", "examples/simple/index.html", "--out-dir", tempdir]), 0, ); assertEquals( await Deno.readTextFile(join(tempdir, "index.html")), "<html><head></head><body><div>aaa</div>\n</body></html>", );});