diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-16 22:49:07 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-16 22:49:07 +0900 |
| commit | efe05c1444963c046ab91bf54fa51a794bda58c0 (patch) | |
| tree | 509b48f27d2e888740bea6bfd6f50895705c7472 /worker/php/package.json | |
| parent | db87f85aa7055e597800481b8cc6d006c70bcc88 (diff) | |
| download | phperkaigi-2026-albatross-efe05c1444963c046ab91bf54fa51a794bda58c0.tar.gz phperkaigi-2026-albatross-efe05c1444963c046ab91bf54fa51a794bda58c0.tar.zst phperkaigi-2026-albatross-efe05c1444963c046ab91bf54fa51a794bda58c0.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'worker/php/package.json')
| -rw-r--r-- | worker/php/package.json | 6 |
1 files changed, 4 insertions, 2 deletions
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" } } |
