diff --git a/tests/specs/fmt_errors/__test__.jsonc b/tests/specs/fmt_errors/__test__.jsonc index 374c07438a..4f7e7e2b02 100644 --- a/tests/specs/fmt_errors/__test__.jsonc +++ b/tests/specs/fmt_errors/__test__.jsonc @@ -1,4 +1,4 @@ { "args": "run --unstable --allow-read main.mts", - "output": "3" + "output": "main.out" } diff --git a/tests/specs/fmt_errors/main.mts b/tests/specs/fmt_errors/main.mts index c00df2e30f..50da134249 100644 --- a/tests/specs/fmt_errors/main.mts +++ b/tests/specs/fmt_errors/main.mts @@ -1,3 +1,3 @@ import * as a from "./a.cts"; -await Deno.stdout.write(new TextEncoder().encode(a.add(1, 2))); +console.log(a.add(1, 2)); diff --git a/tests/specs/fmt_errors/main.out b/tests/specs/fmt_errors/main.out new file mode 100644 index 0000000000..00750edc07 --- /dev/null +++ b/tests/specs/fmt_errors/main.out @@ -0,0 +1 @@ +3