Liking cljdoc? Tell your friends :D

Running the local mocking bird tests

Mockingbird is a powerful tool for helping you build your project, but, as a great dev, you will not insert any random tool someone told you to. Instead, you will test it several times and also contribute to the open source code, won't you?

To do so, follow this simple tutorial

Dev

To start our demo, simply run:

Watch Mode: Automatically rebuilds your application on file changes.


npm run watch

This command runs both the Shadow-CLJS watcher and the PostCSS watcher.

REPL: Starts a Clojure REPL connected to your application.


npm run repl

Testing

Karma CI Tests: Runs the tests once using Karma. Remember to install dependencies before running the tests.


npm run ci:tests

This command sets up the test environment with msw and runs the tests using Shadow-CLJS and Karma. The tests are compiled and executed with the ci-tests build configuration.

Additional npm Commands

  • postcss:build: Runs PostCSS to build the CSS file.
  • postcss:watch: Runs PostCSS in watch mode for development.
  • ci:karma-make: Initializes the MSW (Mock Service Worker) in the test directory.

Now you are done, contribute as much as you want, or give our team a shout out on our repos

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close