From ea11d8e4ddec265e27835881cc3965b9c8c17065 Mon Sep 17 00:00:00 2001 From: anil-bd <210667061+anil-bd@users.noreply.github.com> Date: Tue, 24 Nov 2026 08:11:44 +0100 Subject: [PATCH] fix: run node --test without a directory argument Node 22+ treats a path passed to --test as a file, so 'node --test tests/' fails on Node 24 (used by the publish workflow) with MODULE_NOT_FOUND. Plain 'node --test' auto-discovers tests/*.test.js on Node 20 and 24. Co-Authored-By: Claude Opus 5.5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 70d3077..1e8e7f0 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "CHANGELOG.md" ], "scripts": { - "test": "node --test tests/", + "test": "node --test", "lint": "oxlint src tests" }, "dependencies": {