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/test_util.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/test_util.ts')
-rw-r--r-- | tests/unit/test_util.ts | 2 |
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); |