summaryrefslogtreecommitdiff
path: root/tests/specs/bench
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-08-30 18:58:58 +0100
committerGitHub <noreply@github.com>2024-08-30 13:58:58 -0400
commitb1c6142f741a507ba6594ab174065e00213100b9 (patch)
treef3dce3e55e4b10b6cf0570dddb6f69340da7a0cf /tests/specs/bench
parent4639ae655e9db396fdf4408961db59372334b69b (diff)
BREAKING: `DENO_FUTURE=1` by default, or welcome to Deno 2.0 (#25213)
This commit effectively turns Deno into Deno 2.0. This is done by forcing `DENO_FUTURE=1` env var, that was available in the past few months to try Deno 2 changes. This commit contains several breaking changes scheduled for Deno 2: - all deprecated JavaScript APIs are not available any more, mostly `Deno.*` APIs - `window` global is removed - FFI, WebGPU and FS APIs are now stable and don't require `--unstable-*` flags - import assertions are no longer supported - "bring your own node modules" is enabled by default This is the first commit in a series that are scheduled before the Deno 2 release. Follow up work is tracked in https://github.com/denoland/deno/issues/25241. --------- Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com> Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com> Co-authored-by: Nathan Whitaker <nathan@deno.com>
Diffstat (limited to 'tests/specs/bench')
-rw-r--r--tests/specs/bench/package_json/__test__.jsonc12
-rw-r--r--tests/specs/bench/package_json/install.out3
-rw-r--r--tests/specs/bench/package_json/lib.bench.out3
3 files changed, 13 insertions, 5 deletions
diff --git a/tests/specs/bench/package_json/__test__.jsonc b/tests/specs/bench/package_json/__test__.jsonc
index 001cc8b54..f41748ab5 100644
--- a/tests/specs/bench/package_json/__test__.jsonc
+++ b/tests/specs/bench/package_json/__test__.jsonc
@@ -1,5 +1,13 @@
{
"tempDir": true,
- "args": "bench",
- "output": "lib.bench.out"
+ "steps": [
+ {
+ "args": "install",
+ "output": "install.out"
+ },
+ {
+ "args": "bench",
+ "output": "lib.bench.out"
+ }
+ ]
}
diff --git a/tests/specs/bench/package_json/install.out b/tests/specs/bench/package_json/install.out
new file mode 100644
index 000000000..b8114c12a
--- /dev/null
+++ b/tests/specs/bench/package_json/install.out
@@ -0,0 +1,3 @@
+Download http://localhost:4260/@denotest/esm-basic
+Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
+Initialize @denotest/esm-basic@1.0.0
diff --git a/tests/specs/bench/package_json/lib.bench.out b/tests/specs/bench/package_json/lib.bench.out
index 24da289a9..066c91169 100644
--- a/tests/specs/bench/package_json/lib.bench.out
+++ b/tests/specs/bench/package_json/lib.bench.out
@@ -1,6 +1,3 @@
-Download http://localhost:4260/@denotest/esm-basic
-Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
-Initialize @denotest/esm-basic@1.0.0
Check file:///[WILDCARD]/lib.bench.ts
CPU | [WILDCARD]
Runtime | [WILDCARD]