It looks like shadow-cljs doesn't detect the assertions in my tests. my test looks like this:
(ns computersandblues.lodestone.match-test
(:require [cljs.test :refer-macros [deftest is]]
[computersandblues.lodestone.match :as match]))
(deftest query->tokens
(deftest split-on-whitespace
(is (= (match/query->tokens "foo bar") ["foo" "bar"])))
(deftest grouping-by-quoting
(is (= (match/query->tokens "foo \"bar baz\"") ["foo" "bar"]))))
and this is my shadow-cljs.edn:
{:source-paths
["src"]
,,,
:builds
{,,,
:test
{:target :node-test
:output-to "public/tests.js"
:ns-regexp "-test$"
:autorun true}}}deftest inside deftest looks weird to my eyes. Maybe the inner ones are meant to be testing ? https://clojuredocs.org/clojure.test/testing
indeed, that solved it
thanks
🆒
Running npx shadow-cljs watch test --config-merge '{:autorun true}' gives me
[:test] Build completed. (55 files, 2 compiled, 0 warnings, 0.77s)
[:test] Compiling ...
========= Running Tests =======================
Testing computersandblues.lodestone.match-test
Ran 1 tests containing 0 assertions.
0 failures, 0 errors.
===============================================Adding an additional, failing test changes this to "ran 2 tests" but it still doesn't detect (and run?) any assertions