x/packup@v0.1.13/bundle_util_test.ts

📦 Zero-config web application packager in Deno
Latest
bundle_util_test.ts
import { assertStringIncludes } from "./test_deps.ts";import { bundleByEsbuild } from "./bundle_util.ts";import { wasmPath } from "./install_util.ts";
Deno.test("bundleByEsbuild - bundles the script by esbuild", async () => { const bundle = await bundleByEsbuild("testdata/foo.js", wasmPath());
assertStringIncludes(bundle, `console.log("hi");`);});