From d0259809b1616e6e993b123666df4f277ac4d308 Mon Sep 17 00:00:00 2001 From: Oleg Tsvetkov Date: Thu, 16 Jul 2026 16:08:14 +0300 Subject: [PATCH] Run reagent-karma-example karma tests in CI Add a test:karma script (compile the :karma build, then karma --single-run) and include it in the example's ci script. The karma config already uses ChromeHeadlessNoSandbox, and the CI matrix runs npm run ci per example, so the browser tests now run on the ubuntu runner (which ships Chrome). e2e (taiko) is left out for now. --- examples/reagent-karma-example/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/reagent-karma-example/package.json b/examples/reagent-karma-example/package.json index b3c2530..2421cbb 100644 --- a/examples/reagent-karma-example/package.json +++ b/examples/reagent-karma-example/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "build": "npm run clean && shadow-cljs release app", - "ci": "npm run fmt:check && npm run lint && shadow-cljs compile app && npm test", + "ci": "npm run fmt:check && npm run lint && shadow-cljs compile app && npm test && npm run test:karma", "clean": "rimraf public/js", "e2e": "shadow-cljs compile e2e && node out/e2e.js", "fmt:clj": "prettier --write \"**/*.{clj,cljs,cljc,edn}\"", @@ -16,6 +16,7 @@ "sc": "shadow-cljs", "server": "shadow-cljs stop && shadow-cljs start", "start": "shadow-cljs watch app", + "test:karma": "shadow-cljs compile karma && karma start --single-run --reporters dots", "test:karma:compile": "shadow-cljs watch karma --config-merge \"{:autorun true}\"", "test:karma:run": "karma start --reporters junit,dots", "test:karma:watch": "concurrently --prefix none \"npm run test:karma:run\" \"npm run test:karma:compile\"",