add ui tests to ci
CI / Test + coverage (push) Successful in 1m33s

This commit is contained in:
2026-09-19 19:17:22 -09:00
parent 1926432fc6
commit 47f6cbf2d1
22 changed files with 2426 additions and 84 deletions
+4 -3
View File
@@ -13,8 +13,9 @@
:modules {:main {:init-fn tbd.ui.core/init}}
:devtools {:after-load tbd.ui.core/reload}}
;; script/ui-test: the tests run under Node, against fakes of fetch and navigator.modelContext.
;; script/ui-test (npm test): the tests run under Node, in a jsdom window (test/dom-setup.cjs,
;; which npm test preloads), against a fake server (fetch). Not :autorun: the preload has to
;; come first, so npm test starts node itself.
:test {:target :node-test
:output-to "target/ui-test/test.js"
:ns-regexp "-test$"
:autorun true}}}
:ns-regexp "-test$"}}}