test deno compile

To ensure the resulting deno compiles things that don’t behave as deno
This commit is contained in:
Max Howell 2024-01-13 13:21:49 -05:00
parent 3055115b3e
commit fde48d56a4
No known key found for this signature in database
GPG key ID: 741BB84EF5BB9EEC

View file

@ -56,5 +56,7 @@ test:
- mv $FIXTURE test.ts - mv $FIXTURE test.ts
- deno install test.ts - deno install test.ts
- test "$($HOME/.local/bin/test)" = "Hello, world!" - test "$($HOME/.local/bin/test)" = "Hello, world!"
- deno compile test.ts
- test "$(./test)" = "Hello, world!"
fixture: | fixture: |
console.log("Hello, world!"); console.log("Hello, world!");