import { nextTick } from "node:process"; // https://github.com/denoland/deno_std/issues/1651 Deno.test("test 1", async () => { await new Promise<void>((resolve) => nextTick(resolve)); }); Deno.test("test 2", async () => { await new Promise<void>((resolve) => nextTick(resolve)); });