summaryrefslogtreecommitdiff
path: root/tests/unit/test_util.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-08-26 22:58:28 +0100
committerGitHub <noreply@github.com>2024-08-26 23:58:28 +0200
commitba58628601057c6f996cbad287fcfbe353872368 (patch)
tree5642806d3aed1d46eab233511ef8a929cf0c51d3 /tests/unit/test_util.ts
parent631d931973fbb7d2e01e1aeb87a33dd9d63ec38e (diff)
Reland "test: run unit tests with DENO_FUTURE=1" (#25212)
Reverted in https://github.com/denoland/deno/pull/25060
Diffstat (limited to 'tests/unit/test_util.ts')
-rw-r--r--tests/unit/test_util.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/test_util.ts b/tests/unit/test_util.ts
index e45a963e9..16ca735ac 100644
--- a/tests/unit/test_util.ts
+++ b/tests/unit/test_util.ts
@@ -25,6 +25,8 @@ export { delay } from "@std/async/delay";
export { readLines } from "@std/io/read-lines";
export { parseArgs } from "@std/cli/parse-args";
+export const DENO_FUTURE = Deno.env.get("DENO_FUTURE") === "1";
+
export function pathToAbsoluteFileUrl(path: string): URL {
path = resolve(path);