Setting up dependencies

Running the tests

Running bootstrapped ClojureScript tests

If you have Node.js installed, you can run the bootstrapped
ClojureScript test suite (located at
src/test/self/self_host/test.cljs):

./script/test-self-host

You can also build and run the ClojureScript compiler test suite in
bootstrapped mode within Node.js by running

./script/test-self-parity

Running ClojureScript CLI (cljs.main) tests

You can run tests exercising the ClojureScript CLI by running

./script/test-cli repl-env [repl-env-opts-edn]

where repl-env is any of the built-in REPL environments (node, browser, etc.). This will be passed to cljs.main 's -re option. You can also specify a non-built-in REPL environment, but you would have to revise script/test-cli to include the downstream REPL environment on the classpath. You can also pass optional repl-env-opts-edn, which will be passed to cljs.main 's -ro option.

Don’t forget

Besides the tests it’s important to make sure that the Browser REPL
hasn’t accidentally been broken. Double-check using the sample found in
the repository.