summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.dprint.json2
-rw-r--r--.gitignore6
-rw-r--r--Cargo.toml4
-rw-r--r--cli/bench/napi/bench.js2
-rw-r--r--cli/bench/napi/bench_node.mjs2
-rw-r--r--cli/napi/README.md10
-rw-r--r--ext/ffi/README.md2
-rw-r--r--test_util/src/lib.rs10
-rw-r--r--tests/config/deno.json3
-rw-r--r--tests/ffi/Cargo.toml (renamed from test_ffi/Cargo.toml)0
-rw-r--r--tests/ffi/README.md (renamed from test_ffi/README.md)0
-rw-r--r--tests/ffi/src/lib.rs (renamed from test_ffi/src/lib.rs)0
-rw-r--r--tests/ffi/tests/bench.js (renamed from test_ffi/tests/bench.js)0
-rw-r--r--tests/ffi/tests/event_loop_integration.ts (renamed from test_ffi/tests/event_loop_integration.ts)0
-rw-r--r--tests/ffi/tests/ffi_callback_errors.ts (renamed from test_ffi/tests/ffi_callback_errors.ts)0
-rw-r--r--tests/ffi/tests/ffi_types.ts (renamed from test_ffi/tests/ffi_types.ts)0
-rw-r--r--tests/ffi/tests/integration_tests.rs (renamed from test_ffi/tests/integration_tests.rs)22
-rw-r--r--tests/ffi/tests/test.js (renamed from test_ffi/tests/test.js)2
-rw-r--r--tests/ffi/tests/thread_safe_test.js (renamed from test_ffi/tests/thread_safe_test.js)0
-rw-r--r--tests/ffi/tests/thread_safe_test_worker.js (renamed from test_ffi/tests/thread_safe_test_worker.js)0
-rw-r--r--tests/integration/js_unit_tests.rs2
-rw-r--r--tests/integration/node_compat_tests.rs3
-rw-r--r--tests/integration/node_unit_tests.rs3
-rw-r--r--tests/napi/.gitignore (renamed from test_napi/.gitignore)0
-rw-r--r--tests/napi/Cargo.toml (renamed from test_napi/Cargo.toml)0
-rw-r--r--tests/napi/array_test.js (renamed from test_napi/array_test.js)0
-rw-r--r--tests/napi/arraybuffer_test.js (renamed from test_napi/arraybuffer_test.js)0
-rw-r--r--tests/napi/async_test.js (renamed from test_napi/async_test.js)0
-rw-r--r--tests/napi/bigint_test.js (renamed from test_napi/bigint_test.js)0
-rw-r--r--tests/napi/build.rs (renamed from test_napi/build.rs)0
-rw-r--r--tests/napi/callback_test.js (renamed from test_napi/callback_test.js)0
-rw-r--r--tests/napi/cleanup_hook_test.js (renamed from test_napi/cleanup_hook_test.js)5
-rw-r--r--tests/napi/coerce_test.js (renamed from test_napi/coerce_test.js)0
-rw-r--r--tests/napi/common.js (renamed from test_napi/common.js)4
-rw-r--r--tests/napi/date_test.js (renamed from test_napi/date_test.js)0
-rw-r--r--tests/napi/env_test.js (renamed from test_napi/env_test.js)0
-rw-r--r--tests/napi/error_test.js (renamed from test_napi/error_test.js)0
-rw-r--r--tests/napi/init_test.js (renamed from test_napi/init_test.js)0
-rw-r--r--tests/napi/make_callback_test.js (renamed from test_napi/make_callback_test.js)0
-rw-r--r--tests/napi/mem_test.js (renamed from test_napi/mem_test.js)0
-rw-r--r--tests/napi/module.c (renamed from test_napi/module.c)0
-rw-r--r--tests/napi/numbers_test.js (renamed from test_napi/numbers_test.js)0
-rw-r--r--tests/napi/object_wrap_test.js (renamed from test_napi/object_wrap_test.js)0
-rw-r--r--tests/napi/promise_test.js (renamed from test_napi/promise_test.js)0
-rw-r--r--tests/napi/properties_test.js (renamed from test_napi/properties_test.js)0
-rw-r--r--tests/napi/src/array.rs (renamed from test_napi/src/array.rs)0
-rw-r--r--tests/napi/src/arraybuffer.rs (renamed from test_napi/src/arraybuffer.rs)0
-rw-r--r--tests/napi/src/async.rs (renamed from test_napi/src/async.rs)0
-rw-r--r--tests/napi/src/bigint.rs (renamed from test_napi/src/bigint.rs)0
-rw-r--r--tests/napi/src/callback.rs (renamed from test_napi/src/callback.rs)0
-rw-r--r--tests/napi/src/coerce.rs (renamed from test_napi/src/coerce.rs)0
-rw-r--r--tests/napi/src/date.rs (renamed from test_napi/src/date.rs)0
-rw-r--r--tests/napi/src/env.rs (renamed from test_napi/src/env.rs)0
-rw-r--r--tests/napi/src/error.rs (renamed from test_napi/src/error.rs)0
-rw-r--r--tests/napi/src/finalizer.rs (renamed from test_napi/src/finalizer.rs)0
-rw-r--r--tests/napi/src/lib.rs (renamed from test_napi/src/lib.rs)0
-rw-r--r--tests/napi/src/make_callback.rs (renamed from test_napi/src/make_callback.rs)0
-rw-r--r--tests/napi/src/mem.rs (renamed from test_napi/src/mem.rs)0
-rw-r--r--tests/napi/src/numbers.rs (renamed from test_napi/src/numbers.rs)0
-rw-r--r--tests/napi/src/object_wrap.rs (renamed from test_napi/src/object_wrap.rs)0
-rw-r--r--tests/napi/src/primitives.rs (renamed from test_napi/src/primitives.rs)0
-rw-r--r--tests/napi/src/promise.rs (renamed from test_napi/src/promise.rs)0
-rw-r--r--tests/napi/src/properties.rs (renamed from test_napi/src/properties.rs)0
-rw-r--r--tests/napi/src/strings.rs (renamed from test_napi/src/strings.rs)0
-rw-r--r--tests/napi/src/symbol.rs (renamed from test_napi/src/symbol.rs)0
-rw-r--r--tests/napi/src/tsfn.rs (renamed from test_napi/src/tsfn.rs)0
-rw-r--r--tests/napi/src/typedarray.rs (renamed from test_napi/src/typedarray.rs)0
-rw-r--r--tests/napi/strings_test.js (renamed from test_napi/strings_test.js)0
-rw-r--r--tests/napi/symbol_test.js (renamed from test_napi/symbol_test.js)0
-rw-r--r--tests/napi/tests/napi_tests.rs (renamed from test_napi/tests/napi_tests.rs)8
-rw-r--r--tests/napi/typedarray_test.js (renamed from test_napi/typedarray_test.js)0
71 files changed, 66 insertions, 24 deletions
diff --git a/.dprint.json b/.dprint.json
index 64e78ae13..ab12459e4 100644
--- a/.dprint.json
+++ b/.dprint.json
@@ -45,7 +45,7 @@
"cli/tsc/*typescript.js",
"gh-pages",
"target",
- "test_ffi/tests/test.js",
+ "tests/ffi/tests/test.js",
"test_util/std",
"test_util/wpt",
"third_party",
diff --git a/.gitignore b/.gitignore
index eab627b38..37f568324 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,9 +12,9 @@ gclient_config.py_entries
/std/hash/_wasm/target
/tools/wpt/manifest.json
/third_party/
-/test_napi/node_modules
-/test_napi/build
-/test_napi/third_party_tests/node_modules
+/tests/napi/node_modules
+/tests/napi/build
+/tests/napi/third_party_tests/node_modules
# MacOS generated files
.DS_Store
diff --git a/Cargo.toml b/Cargo.toml
index 1c9d31109..c76dd166c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -28,10 +28,10 @@ members = [
"ext/websocket",
"ext/webstorage",
"runtime",
- "test_ffi",
- "test_napi",
"test_util",
"tests",
+ "tests/ffi",
+ "tests/napi",
]
exclude = ["test_util/std/hash/_wasm"]
diff --git a/cli/bench/napi/bench.js b/cli/bench/napi/bench.js
index d2aac63df..c12c7aacb 100644
--- a/cli/bench/napi/bench.js
+++ b/cli/bench/napi/bench.js
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { loadTestLibrary } from "../../../test_napi/common.js";
+import { loadTestLibrary } from "../../../tests/napi/common.js";
const lib = loadTestLibrary();
diff --git a/cli/bench/napi/bench_node.mjs b/cli/bench/napi/bench_node.mjs
index 2593aadd2..82e06f08f 100644
--- a/cli/bench/napi/bench_node.mjs
+++ b/cli/bench/napi/bench_node.mjs
@@ -2,7 +2,7 @@ import { bench, run } from "mitata";
import { createRequire } from "module";
const require = createRequire(import.meta.url);
-const lib = require("../../../test_napi.node");
+const lib = require("../../../tests/napi.node");
bench("warmup", () => {});
bench("napi_get_undefined", () => lib.test_get_undefined(0));
diff --git a/cli/napi/README.md b/cli/napi/README.md
index e40d4719d..ec637e1bd 100644
--- a/cli/napi/README.md
+++ b/cli/napi/README.md
@@ -50,11 +50,11 @@ Update the generated symbol lists using the script:
deno run --allow-write tools/napi/generate_symbols_lists.js
```
-Add a test in [`/test_napi`](../../test_napi/). You can also refer to Node.js
+Add a test in [`/tests/napi`](../../tests/napi/). You can also refer to Node.js
test suite for Node-API.
```js
-// test_napi/boolean_test.js
+// tests/napi/boolean_test.js
import { assertEquals, loadTestLibrary } from "./common.js";
const lib = loadTestLibrary();
Deno.test("napi get boolean", function () {
@@ -64,7 +64,7 @@ Deno.test("napi get boolean", function () {
```
```rust
-// test_napi/src/boolean.rs
+// tests/napi/src/boolean.rs
use napi_sys::Status::napi_ok;
use napi_sys::ValueType::napi_boolean;
@@ -96,7 +96,7 @@ pub fn init(env: napi_env, exports: napi_value) {
```
```diff
-// test_napi/src/lib.rs
+// tests/napi/src/lib.rs
+ mod boolean;
@@ -114,4 +114,4 @@ unsafe extern "C" fn napi_register_module_v1(
}
```
-Run the test using `cargo test -p test_napi`.
+Run the test using `cargo test -p tests/napi`.
diff --git a/ext/ffi/README.md b/ext/ffi/README.md
index a821a3981..f2283c919 100644
--- a/ext/ffi/README.md
+++ b/ext/ffi/README.md
@@ -21,5 +21,5 @@ MacOS.
To run benchmarks:
```bash
-target/release/deno bench --allow-ffi --allow-read --unstable-ffi ./test_ffi/tests/bench.js
+target/release/deno bench --allow-ffi --allow-read --unstable-ffi ./tests/ffi/tests/bench.js
```
diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs
index 7bb99a573..5eef6cf9a 100644
--- a/test_util/src/lib.rs
+++ b/test_util/src/lib.rs
@@ -87,8 +87,16 @@ pub fn third_party_path() -> PathRef {
root_path().join("third_party")
}
+pub fn ffi_tests_path() -> PathRef {
+ root_path().join("tests").join("ffi")
+}
+
pub fn napi_tests_path() -> PathRef {
- root_path().join("test_napi")
+ root_path().join("tests").join("napi")
+}
+
+pub fn deno_config_path() -> PathRef {
+ root_path().join("tests").join("config").join("deno.json")
}
/// Test server registry url.
diff --git a/tests/config/deno.json b/tests/config/deno.json
index ec93111fd..52538a812 100644
--- a/tests/config/deno.json
+++ b/tests/config/deno.json
@@ -1,5 +1,6 @@
{
"imports": {
- "@test_util/": "../../test_util/"
+ "@test_util/": "../../test_util/",
+ "@std/": "../../test_util/std/"
}
}
diff --git a/test_ffi/Cargo.toml b/tests/ffi/Cargo.toml
index a5d2883ef..a5d2883ef 100644
--- a/test_ffi/Cargo.toml
+++ b/tests/ffi/Cargo.toml
diff --git a/test_ffi/README.md b/tests/ffi/README.md
index 685385e4f..685385e4f 100644
--- a/test_ffi/README.md
+++ b/tests/ffi/README.md
diff --git a/test_ffi/src/lib.rs b/tests/ffi/src/lib.rs
index f6ee31eb8..f6ee31eb8 100644
--- a/test_ffi/src/lib.rs
+++ b/tests/ffi/src/lib.rs
diff --git a/test_ffi/tests/bench.js b/tests/ffi/tests/bench.js
index 49884d32e..49884d32e 100644
--- a/test_ffi/tests/bench.js
+++ b/tests/ffi/tests/bench.js
diff --git a/test_ffi/tests/event_loop_integration.ts b/tests/ffi/tests/event_loop_integration.ts
index d9ada6027..d9ada6027 100644
--- a/test_ffi/tests/event_loop_integration.ts
+++ b/tests/ffi/tests/event_loop_integration.ts
diff --git a/test_ffi/tests/ffi_callback_errors.ts b/tests/ffi/tests/ffi_callback_errors.ts
index dbd60636c..dbd60636c 100644
--- a/test_ffi/tests/ffi_callback_errors.ts
+++ b/tests/ffi/tests/ffi_callback_errors.ts
diff --git a/test_ffi/tests/ffi_types.ts b/tests/ffi/tests/ffi_types.ts
index 596662873..596662873 100644
--- a/test_ffi/tests/ffi_types.ts
+++ b/tests/ffi/tests/ffi_types.ts
diff --git a/test_ffi/tests/integration_tests.rs b/tests/ffi/tests/integration_tests.rs
index 642fbed03..0ad95254c 100644
--- a/test_ffi/tests/integration_tests.rs
+++ b/tests/ffi/tests/integration_tests.rs
@@ -3,6 +3,8 @@
use pretty_assertions::assert_eq;
use std::process::Command;
use test_util::deno_cmd;
+use test_util::deno_config_path;
+use test_util::ffi_tests_path;
#[cfg(debug_assertions)]
const BUILD_VARIANT: &str = "debug";
@@ -26,7 +28,11 @@ fn basic() {
build();
let output = deno_cmd()
+ .current_dir(ffi_tests_path())
.arg("run")
+ .arg("--config")
+ .arg(deno_config_path())
+ .arg("--no-lock")
.arg("--allow-ffi")
.arg("--allow-read")
.arg("--unstable-ffi")
@@ -134,7 +140,11 @@ fn symbol_types() {
build();
let output = deno_cmd()
+ .current_dir(ffi_tests_path())
.arg("check")
+ .arg("--config")
+ .arg(deno_config_path())
+ .arg("--no-lock")
.arg("--unstable-ffi")
.arg("--quiet")
.arg("tests/ffi_types.ts")
@@ -157,7 +167,11 @@ fn thread_safe_callback() {
build();
let output = deno_cmd()
+ .current_dir(ffi_tests_path())
.arg("run")
+ .arg("--config")
+ .arg(deno_config_path())
+ .arg("--no-lock")
.arg("--allow-ffi")
.arg("--allow-read")
.arg("--unstable-ffi")
@@ -191,7 +205,11 @@ fn event_loop_integration() {
build();
let output = deno_cmd()
+ .current_dir(ffi_tests_path())
.arg("run")
+ .arg("--config")
+ .arg(deno_config_path())
+ .arg("--no-lock")
.arg("--allow-ffi")
.arg("--allow-read")
.arg("--unstable-ffi")
@@ -243,7 +261,11 @@ fn ffi_callback_errors_test() {
build();
let output = deno_cmd()
+ .current_dir(ffi_tests_path())
.arg("run")
+ .arg("--config")
+ .arg(deno_config_path())
+ .arg("--no-lock")
.arg("--allow-ffi")
.arg("--allow-read")
.arg("--unstable-ffi")
diff --git a/test_ffi/tests/test.js b/tests/ffi/tests/test.js
index 8e57cd34b..6b8e509c0 100644
--- a/test_ffi/tests/test.js
+++ b/tests/ffi/tests/test.js
@@ -10,7 +10,7 @@ import {
assertInstanceOf,
assertEquals,
assertFalse,
-} from "../../test_util/std/assert/mod.ts";
+} from "@std/assert/mod.ts";
const targetDir = Deno.execPath().replace(/[^\/\\]+$/, "");
const [libPrefix, libSuffix] = {
diff --git a/test_ffi/tests/thread_safe_test.js b/tests/ffi/tests/thread_safe_test.js
index fffa61a04..fffa61a04 100644
--- a/test_ffi/tests/thread_safe_test.js
+++ b/tests/ffi/tests/thread_safe_test.js
diff --git a/test_ffi/tests/thread_safe_test_worker.js b/tests/ffi/tests/thread_safe_test_worker.js
index fc4854436..fc4854436 100644
--- a/test_ffi/tests/thread_safe_test_worker.js
+++ b/tests/ffi/tests/thread_safe_test_worker.js
diff --git a/tests/integration/js_unit_tests.rs b/tests/integration/js_unit_tests.rs
index 16aebd8c4..de7108d25 100644
--- a/tests/integration/js_unit_tests.rs
+++ b/tests/integration/js_unit_tests.rs
@@ -120,7 +120,7 @@ fn js_unit_test(test: String) {
.current_dir(util::root_path())
.arg("test")
.arg("--config")
- .arg("tests/config/deno.json")
+ .arg(util::deno_config_path())
.arg("--no-lock")
.arg("--unstable")
.arg("--location=http://127.0.0.1:4545/")
diff --git a/tests/integration/node_compat_tests.rs b/tests/integration/node_compat_tests.rs
index d592c75a5..e2b3c219c 100644
--- a/tests/integration/node_compat_tests.rs
+++ b/tests/integration/node_compat_tests.rs
@@ -1,6 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
use test_util as util;
+use util::deno_config_path;
use util::env_vars_for_npm_tests;
#[test]
@@ -9,7 +10,7 @@ fn node_compat_tests() {
.current_dir(util::root_path())
.arg("test")
.arg("--config")
- .arg("tests/config/deno.json")
+ .arg(deno_config_path())
.arg("--no-lock")
.arg("--unstable")
.arg("-A")
diff --git a/tests/integration/node_unit_tests.rs b/tests/integration/node_unit_tests.rs
index c99586fa1..7c5976bf6 100644
--- a/tests/integration/node_unit_tests.rs
+++ b/tests/integration/node_unit_tests.rs
@@ -4,6 +4,7 @@ use std::io::BufReader;
use std::time::Duration;
use std::time::Instant;
use test_util as util;
+use util::deno_config_path;
use util::env_vars_for_npm_tests;
util::unit_test_factory!(
@@ -97,7 +98,7 @@ fn node_unit_test(test: String) {
.current_dir(util::root_path())
.arg("test")
.arg("--config")
- .arg("tests/config/deno.json")
+ .arg(deno_config_path())
.arg("--no-lock")
.arg("--unstable")
// TODO(kt3k): This option is required to pass tls_test.ts,
diff --git a/test_napi/.gitignore b/tests/napi/.gitignore
index 54de1ef34..54de1ef34 100644
--- a/test_napi/.gitignore
+++ b/tests/napi/.gitignore
diff --git a/test_napi/Cargo.toml b/tests/napi/Cargo.toml
index 611d6d550..611d6d550 100644
--- a/test_napi/Cargo.toml
+++ b/tests/napi/Cargo.toml
diff --git a/test_napi/array_test.js b/tests/napi/array_test.js
index 572d3a899..572d3a899 100644
--- a/test_napi/array_test.js
+++ b/tests/napi/array_test.js
diff --git a/test_napi/arraybuffer_test.js b/tests/napi/arraybuffer_test.js
index f55b9a78c..f55b9a78c 100644
--- a/test_napi/arraybuffer_test.js
+++ b/tests/napi/arraybuffer_test.js
diff --git a/test_napi/async_test.js b/tests/napi/async_test.js
index 4d9ad99c2..4d9ad99c2 100644
--- a/test_napi/async_test.js
+++ b/tests/napi/async_test.js
diff --git a/test_napi/bigint_test.js b/tests/napi/bigint_test.js
index 4a9ada205..4a9ada205 100644
--- a/test_napi/bigint_test.js
+++ b/tests/napi/bigint_test.js
diff --git a/test_napi/build.rs b/tests/napi/build.rs
index c2fe86a53..c2fe86a53 100644
--- a/test_napi/build.rs
+++ b/tests/napi/build.rs
diff --git a/test_napi/callback_test.js b/tests/napi/callback_test.js
index 98622d48d..98622d48d 100644
--- a/test_napi/callback_test.js
+++ b/tests/napi/callback_test.js
diff --git a/test_napi/cleanup_hook_test.js b/tests/napi/cleanup_hook_test.js
index f1f916175..0d83bc5b4 100644
--- a/test_napi/cleanup_hook_test.js
+++ b/tests/napi/cleanup_hook_test.js
@@ -12,6 +12,9 @@ if (import.meta.main) {
const { stdout, stderr, code } = await new Deno.Command(Deno.execPath(), {
args: [
"run",
+ "--config",
+ Deno.realPathSync("../config/deno.json"),
+ "--no-lock",
"--allow-read",
"--allow-run",
"--allow-ffi",
@@ -20,8 +23,8 @@ if (import.meta.main) {
],
}).output();
- assertEquals(code, 0);
assertEquals(new TextDecoder().decode(stderr), "");
+ assertEquals(code, 0);
const stdoutText = new TextDecoder().decode(stdout);
const stdoutLines = stdoutText.split("\n");
diff --git a/test_napi/coerce_test.js b/tests/napi/coerce_test.js
index 64f014801..64f014801 100644
--- a/test_napi/coerce_test.js
+++ b/tests/napi/coerce_test.js
diff --git a/test_napi/common.js b/tests/napi/common.js
index 71ac3f0bb..3a4f253ef 100644
--- a/test_napi/common.js
+++ b/tests/napi/common.js
@@ -5,8 +5,8 @@ export {
assertEquals,
assertRejects,
assertThrows,
-} from "../test_util/std/assert/mod.ts";
-export { fromFileUrl } from "../test_util/std/path/mod.ts";
+} from "@std/assert/mod.ts";
+export { fromFileUrl } from "@std/path/mod.ts";
import process from "node:process";
const targetDir = Deno.execPath().replace(/[^\/\\]+$/, "");
diff --git a/test_napi/date_test.js b/tests/napi/date_test.js
index 49eec5cca..49eec5cca 100644
--- a/test_napi/date_test.js
+++ b/tests/napi/date_test.js
diff --git a/test_napi/env_test.js b/tests/napi/env_test.js
index 72b868a66..72b868a66 100644
--- a/test_napi/env_test.js
+++ b/tests/napi/env_test.js
diff --git a/test_napi/error_test.js b/tests/napi/error_test.js
index 57acde5c1..57acde5c1 100644
--- a/test_napi/error_test.js
+++ b/tests/napi/error_test.js
diff --git a/test_napi/init_test.js b/tests/napi/init_test.js
index 5f2507876..5f2507876 100644
--- a/test_napi/init_test.js
+++ b/tests/napi/init_test.js
diff --git a/test_napi/make_callback_test.js b/tests/napi/make_callback_test.js
index b1f7912ae..b1f7912ae 100644
--- a/test_napi/make_callback_test.js
+++ b/tests/napi/make_callback_test.js
diff --git a/test_napi/mem_test.js b/tests/napi/mem_test.js
index bee8c194e..bee8c194e 100644
--- a/test_napi/mem_test.js
+++ b/tests/napi/mem_test.js
diff --git a/test_napi/module.c b/tests/napi/module.c
index 4548aa37f..4548aa37f 100644
--- a/test_napi/module.c
+++ b/tests/napi/module.c
diff --git a/test_napi/numbers_test.js b/tests/napi/numbers_test.js
index 8a99c831d..8a99c831d 100644
--- a/test_napi/numbers_test.js
+++ b/tests/napi/numbers_test.js
diff --git a/test_napi/object_wrap_test.js b/tests/napi/object_wrap_test.js
index f79fd08f8..f79fd08f8 100644
--- a/test_napi/object_wrap_test.js
+++ b/tests/napi/object_wrap_test.js
diff --git a/test_napi/promise_test.js b/tests/napi/promise_test.js
index e4bbfee6b..e4bbfee6b 100644
--- a/test_napi/promise_test.js
+++ b/tests/napi/promise_test.js
diff --git a/test_napi/properties_test.js b/tests/napi/properties_test.js
index 21a3555e8..21a3555e8 100644
--- a/test_napi/properties_test.js
+++ b/tests/napi/properties_test.js
diff --git a/test_napi/src/array.rs b/tests/napi/src/array.rs
index 6df420eb5..6df420eb5 100644
--- a/test_napi/src/array.rs
+++ b/tests/napi/src/array.rs
diff --git a/test_napi/src/arraybuffer.rs b/tests/napi/src/arraybuffer.rs
index 8402f5d86..8402f5d86 100644
--- a/test_napi/src/arraybuffer.rs
+++ b/tests/napi/src/arraybuffer.rs
diff --git a/test_napi/src/async.rs b/tests/napi/src/async.rs
index 3d3827b51..3d3827b51 100644
--- a/test_napi/src/async.rs
+++ b/tests/napi/src/async.rs
diff --git a/test_napi/src/bigint.rs b/tests/napi/src/bigint.rs
index d86782331..d86782331 100644
--- a/test_napi/src/bigint.rs
+++ b/tests/napi/src/bigint.rs
diff --git a/test_napi/src/callback.rs b/tests/napi/src/callback.rs
index 8909f5176..8909f5176 100644
--- a/test_napi/src/callback.rs
+++ b/tests/napi/src/callback.rs
diff --git a/test_napi/src/coerce.rs b/tests/napi/src/coerce.rs
index a40578384..a40578384 100644
--- a/test_napi/src/coerce.rs
+++ b/tests/napi/src/coerce.rs
diff --git a/test_napi/src/date.rs b/tests/napi/src/date.rs
index 4d3c155c3..4d3c155c3 100644
--- a/test_napi/src/date.rs
+++ b/tests/napi/src/date.rs
diff --git a/test_napi/src/env.rs b/tests/napi/src/env.rs
index ebc6532a3..ebc6532a3 100644
--- a/test_napi/src/env.rs
+++ b/tests/napi/src/env.rs
diff --git a/test_napi/src/error.rs b/tests/napi/src/error.rs
index e0d79c836..e0d79c836 100644
--- a/test_napi/src/error.rs
+++ b/tests/napi/src/error.rs
diff --git a/test_napi/src/finalizer.rs b/tests/napi/src/finalizer.rs
index 9769e775e..9769e775e 100644
--- a/test_napi/src/finalizer.rs
+++ b/tests/napi/src/finalizer.rs
diff --git a/test_napi/src/lib.rs b/tests/napi/src/lib.rs
index b9f93fbd6..b9f93fbd6 100644
--- a/test_napi/src/lib.rs
+++ b/tests/napi/src/lib.rs
diff --git a/test_napi/src/make_callback.rs b/tests/napi/src/make_callback.rs
index 945df3452..945df3452 100644
--- a/test_napi/src/make_callback.rs
+++ b/tests/napi/src/make_callback.rs
diff --git a/test_napi/src/mem.rs b/tests/napi/src/mem.rs
index ebb6a5c7a..ebb6a5c7a 100644
--- a/test_napi/src/mem.rs
+++ b/tests/napi/src/mem.rs
diff --git a/test_napi/src/numbers.rs b/tests/napi/src/numbers.rs
index 777ccbfac..777ccbfac 100644
--- a/test_napi/src/numbers.rs
+++ b/tests/napi/src/numbers.rs
diff --git a/test_napi/src/object_wrap.rs b/tests/napi/src/object_wrap.rs
index d04107cf0..d04107cf0 100644
--- a/test_napi/src/object_wrap.rs
+++ b/tests/napi/src/object_wrap.rs
diff --git a/test_napi/src/primitives.rs b/tests/napi/src/primitives.rs
index 28fb8ec3d..28fb8ec3d 100644
--- a/test_napi/src/primitives.rs
+++ b/tests/napi/src/primitives.rs
diff --git a/test_napi/src/promise.rs b/tests/napi/src/promise.rs
index 82cd7a160..82cd7a160 100644
--- a/test_napi/src/promise.rs
+++ b/tests/napi/src/promise.rs
diff --git a/test_napi/src/properties.rs b/tests/napi/src/properties.rs
index 43bef1949..43bef1949 100644
--- a/test_napi/src/properties.rs
+++ b/tests/napi/src/properties.rs
diff --git a/test_napi/src/strings.rs b/tests/napi/src/strings.rs
index 301ab23df..301ab23df 100644
--- a/test_napi/src/strings.rs
+++ b/tests/napi/src/strings.rs
diff --git a/test_napi/src/symbol.rs b/tests/napi/src/symbol.rs
index 6387d449f..6387d449f 100644
--- a/test_napi/src/symbol.rs
+++ b/tests/napi/src/symbol.rs
diff --git a/test_napi/src/tsfn.rs b/tests/napi/src/tsfn.rs
index dabc96f83..dabc96f83 100644
--- a/test_napi/src/tsfn.rs
+++ b/tests/napi/src/tsfn.rs
diff --git a/test_napi/src/typedarray.rs b/tests/napi/src/typedarray.rs
index b512bd32f..b512bd32f 100644
--- a/test_napi/src/typedarray.rs
+++ b/tests/napi/src/typedarray.rs
diff --git a/test_napi/strings_test.js b/tests/napi/strings_test.js
index 45cb133b2..45cb133b2 100644
--- a/test_napi/strings_test.js
+++ b/tests/napi/strings_test.js
diff --git a/test_napi/symbol_test.js b/tests/napi/symbol_test.js
index d8edec023..d8edec023 100644
--- a/test_napi/symbol_test.js
+++ b/tests/napi/symbol_test.js
diff --git a/test_napi/tests/napi_tests.rs b/tests/napi/tests/napi_tests.rs
index ce47b1e99..671699651 100644
--- a/test_napi/tests/napi_tests.rs
+++ b/tests/napi/tests/napi_tests.rs
@@ -2,8 +2,10 @@
use std::process::Command;
use test_util::deno_cmd;
+use test_util::deno_config_path;
use test_util::env_vars_for_npm_tests;
use test_util::http_server;
+use test_util::napi_tests_path;
#[cfg(debug_assertions)]
const BUILD_VARIANT: &str = "debug";
@@ -57,13 +59,17 @@ fn napi_tests() {
let _http_guard = http_server();
let output = deno_cmd()
- .current_dir(test_util::napi_tests_path())
+ .current_dir(napi_tests_path())
.env("RUST_BACKTRACE", "1")
.arg("test")
.arg("--allow-read")
.arg("--allow-env")
.arg("--allow-ffi")
.arg("--allow-run")
+ .arg("--config")
+ .arg(deno_config_path())
+ .arg("--no-lock")
+ .arg(".")
.envs(env_vars_for_npm_tests())
.spawn()
.unwrap()
diff --git a/test_napi/typedarray_test.js b/tests/napi/typedarray_test.js
index 25729754a..25729754a 100644
--- a/test_napi/typedarray_test.js
+++ b/tests/napi/typedarray_test.js