From 073d59c493dbb04857fc2ef4e0ccf5e73926863a Mon Sep 17 00:00:00 2001 From: Anil Kumar Date: Tue, 24 Nov 2026 07:51:15 +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": {