Skip to content

Commit 2e4432d

Browse files
chore(testing): run Bun tests from runner directory
1 parent be97400 commit 2e4432d

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Copyright 2018-2026 the Deno authors. MIT license.
2+
3+
import { fileURLToPath } from "node:url";
4+
5+
process.chdir(fileURLToPath(new URL("../..", import.meta.url)));
File renamed without changes.

‎deno.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"test:tools": "deno test -A --doc _tools/",
2222
"test:browser": "git grep --name-only \"This module is browser compatible.\" | grep -v deno.json | grep -v .github/workflows | grep -v _tools | grep -v encoding/README.md | grep -v media_types/vendor/update.ts | xargs deno check --config browser-compat.tsconfig.json",
2323
"test:node": "(cd _tools/node_test_runner && npm install) && node --import ./_tools/node_test_runner/register_deno_shim.mjs ./_tools/node_test_runner/run_test.mjs",
24-
"test:bun": "(cd _tools/node_test_runner && bun install) && bun test --tsconfig-override ./_tools/node_test_runner/tsconfig_for_bun.json --require ./_tools/node_test_runner/register_deno_shim.mjs _tools/node_test_runner/run_test.mjs",
24+
"test:bun": "(cd _tools/node_test_runner && bun install && bun test --preload ./set_root_cwd.mjs --require ./register_deno_shim.mjs ./run_test.mjs)",
2525
"lint:circular": "deno run --allow-env --allow-read --allow-write --allow-net=deno.land,jsr.io ./_tools/check_circular_package_dependencies.ts",
2626
"lint:mod-exports": "deno run --allow-env --allow-read ./_tools/check_mod_exports.ts",
2727
"lint:tools-types": "deno check _tools/*.ts",

0 commit comments

Comments
 (0)