summaryrefslogtreecommitdiff
path: root/tests/unit/process_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-08-14 21:50:06 +0100
committerGitHub <noreply@github.com>2024-08-14 22:50:06 +0200
commit22a834ff5b4b312b8f91be8991f2b495d49fad2f (patch)
tree66ed83a0898396a950c040aa70192bda95f9102e /tests/unit/process_test.ts
parentf89b5311492377a3ac18d756dc8c8a309e2c9e8a (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/process_test.ts')
-rw-r--r--tests/unit/process_test.ts14
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/unit/process_test.ts b/tests/unit/process_test.ts
index 040c6ee19..111b18421 100644
--- a/tests/unit/process_test.ts
+++ b/tests/unit/process_test.ts
@@ -5,6 +5,7 @@ import {
assertStrictEquals,
assertStringIncludes,
assertThrows,
+ DENO_FUTURE,
} from "./test_util.ts";
Deno.test(
@@ -363,7 +364,11 @@ Deno.test(
);
Deno.test(
- { permissions: { run: true, write: true, read: true } },
+ {
+ // Ignoring because uses `file.rid`
+ ignore: DENO_FUTURE,
+ permissions: { run: true, write: true, read: true },
+ },
async function runRedirectStdoutStderr() {
const tempDir = await Deno.makeTempDir();
const fileName = tempDir + "/redirected_stdio.txt";
@@ -392,11 +397,16 @@ Deno.test(
assertStringIncludes(text, "error");
assertStringIncludes(text, "output");
+ console.log("finished tgis test");
},
);
Deno.test(
- { permissions: { run: true, write: true, read: true } },
+ {
+ // Ignoring because uses `file.rid`
+ ignore: DENO_FUTURE,
+ permissions: { run: true, write: true, read: true },
+ },
async function runRedirectStdin() {
const tempDir = await Deno.makeTempDir();
const fileName = tempDir + "/redirected_stdio.txt";