From efe05c1444963c046ab91bf54fa51a794bda58c0 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 16 Feb 2026 22:49:07 +0900 Subject: test(worker): add unit tests for php and swift workers Extract testable logic from exec.mjs into lib.mjs (preprocessCode, createIOCallbacks, buildResult) and add vitest tests. Add Go tests for models, exec helpers, and handlers in worker/swift. Update justfiles to include test tasks for local dev and CI. Co-Authored-By: Claude Opus 4.6 --- worker/php/package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'worker/php/package.json') diff --git a/worker/php/package.json b/worker/php/package.json index 406df5c..12127bd 100644 --- a/worker/php/package.json +++ b/worker/php/package.json @@ -5,13 +5,15 @@ "main": "index.mjs", "scripts": { "check": "npm run check:biome", - "check:biome": "biome check --write" + "check:biome": "biome check --write", + "test": "vitest run" }, "dependencies": { "@hono/node-server": "^1.19.9", "hono": "^4.11.9" }, "devDependencies": { - "@biomejs/biome": "^2.3.15" + "@biomejs/biome": "^2.3.15", + "vitest": "^3.2.1" } } -- cgit v1.3.1