diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-08-14 21:50:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-14 22:50:06 +0200 |
commit | 22a834ff5b4b312b8f91be8991f2b495d49fad2f (patch) | |
tree | 66ed83a0898396a950c040aa70192bda95f9102e /tests/unit/tty_test.ts | |
parent | f89b5311492377a3ac18d756dc8c8a309e2c9e8a (diff) |
test: run unit tests with DENO_FUTURE=1 (#24400)
This commit adds another test suite that runs all Deno unit tests
with `DENO_FUTURE=1` flag to ensure all APIs are working as
expected, once Deno 2 is released.
---------
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
Diffstat (limited to 'tests/unit/tty_test.ts')
-rw-r--r-- | tests/unit/tty_test.ts | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/tests/unit/tty_test.ts b/tests/unit/tty_test.ts index 0c1140804..35e7dd783 100644 --- a/tests/unit/tty_test.ts +++ b/tests/unit/tty_test.ts @@ -2,7 +2,7 @@ // deno-lint-ignore-file no-deprecated-deno-api -import { assert } from "./test_util.ts"; +import { assert, DENO_FUTURE } from "./test_util.ts"; // Note tests for Deno.stdin.setRaw is in integration tests. @@ -15,12 +15,15 @@ Deno.test(function consoleSize() { assert(typeof result.rows !== "undefined"); }); -Deno.test({ permissions: { read: true } }, function isatty() { - // CI not under TTY, so cannot test stdin/stdout/stderr. - const f = Deno.openSync("tests/testdata/assets/hello.txt"); - assert(!Deno.isatty(f.rid)); - f.close(); -}); +Deno.test( + { ignore: DENO_FUTURE, permissions: { read: true } }, + function isatty() { + // CI not under TTY, so cannot test stdin/stdout/stderr. + const f = Deno.openSync("tests/testdata/assets/hello.txt"); + assert(!Deno.isatty(f.rid)); + f.close(); + }, +); Deno.test(function isattyError() { let caught = false; |