tests: use the same browser instance across tests and better use explicit resource management (#2901)

On my machine, reduces time taken to perform `deno task test` from
~1m20s to ~30s.

Inspired by and supersedes #2110.

---------

Co-authored-by: Marvin Hagemeister <marvin@deno.com>
This commit is contained in:
Asher Gomez
2025-05-21 11:32:18 +02:00
committed by GitHub
co-authored by Marvin Hagemeister
parent 17257dd1c2
commit da8879dede
3 changed files with 78 additions and 119 deletions
+1 -1
View File
@@ -67,7 +67,7 @@
"@std/semver": "jsr:@std/semver@1",
"@std/streams": "jsr:@std/streams@1",
"@astral/astral": "jsr:@astral/astral@^0.5.2",
"@astral/astral": "jsr:@astral/astral@^0.5.3",
"@marvinh-test/fresh-island": "jsr:@marvinh-test/fresh-island@^0.0.1",
"linkedom": "npm:linkedom@^0.18.10",
"@std/async": "jsr:@std/async@^1.0.13",