diff --git a/Makefile b/Makefile index 672053ca06..bced4b3a97 100644 --- a/Makefile +++ b/Makefile @@ -69,6 +69,7 @@ test-deno: esbuild platform-deno @echo '✅ deno tests passed' # I couldn't find a Deno API for telling when tests have failed, so I'm doing this here instead deno eval 'import { transform, stop } from "file://$(shell pwd)/deno/mod.js"; console.log((await transform("1+2")).code); stop()' | grep "1 + 2;" deno eval 'import { transform, stop } from "file://$(shell pwd)/deno/wasm.js"; console.log((await transform("1+2")).code); stop()' | grep "1 + 2;" + deno run -A './deno/mod.js' | grep "Usage:" # See: https://github.com/evanw/esbuild/pull/3917 test-deno-windows: esbuild platform-deno ESBUILD_BINARY_PATH=./esbuild.exe deno test --allow-run --allow-env --allow-net --allow-read --allow-write --no-check scripts/deno-tests.js