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/swift/justfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'worker/swift/justfile') diff --git a/worker/swift/justfile b/worker/swift/justfile index b203597..decaaf0 100644 --- a/worker/swift/justfile +++ b/worker/swift/justfile @@ -2,4 +2,7 @@ check: go build -o /dev/null ./... go tool golangci-lint run -ci: check +test: + go test ./... + +ci: check test -- cgit v1.3.1