This is helper module to automate enabling hyperfiddle/rcf or running all of your rcf tests on CI.
For enabling hyperfidde you can add the following preload to shadow-cljs com.avisi-apps.gaps.rcf.preload
. This looks as
follows:
:devtools {:preloads [com.avisi-apps.gaps.rcf.preload]}
It is a good idea to also add your dev startup ns before com.avisi-apps.gaps.rcf.preload
this makes sure that rcf only
runs test for reloaded namespaces instead of all tests in your project which get required by your bootstrap
When you write a lot of inline test it would be nice if those tests get ran on CI. There is hook for that
com.avisi-apps.gaps.rcf.shadow-cljs.hook
below is an example build for creating a build to run NodeJS tests:
{:target :node-test
:output-to "modules/test/index.js"
:ns-regexp "-test$"
:build-hooks [(com.avisi-apps.gaps.rcf.shadow-cljs.hook/hook)]}