Script testing example for shadow-cljs
Find more in docs https://shadow-cljs.github.io/docs/UsersGuide.html#_testing .
Find out more about testing https://nakkaya.com/2009/11/18/unit-testing-in-clojure/ .
It's suggested to install shadow-cljs inside project(node_modules/
):
yarn # or npm
Run tests:
yarn shadow-cljs compile app &&
node target/test.js
Or start shadow-cljs in watch mode:
yarn shadow-cljs watch app
# then...
# node target/test.js
- add
shadow-cljs.edn
to config compilation - compile ClojureScript
- run
node target/test.js
to start app(or watch testing)
MIT