Programming Clojure, Fourth Edition: How to use the REPL with tests? (p. 271)

The book suggest the following to add a test alias.

 :aliases {
   :test {:extra-paths ["test"]
          :extra-deps {io.github.cognitect-labs/test-runner {:git/tag "v0.5.1" :git/sha "dfb30dd"}}
          :exec-fn cognitect.test-runner.api/test}}}

And to run the tests with clj -X:test

But, how is the user supposed to use this code in the REPL? Usually in a project you’d have extra test dependencies that is not only the test runner. To develop in the REPL that code I’d need a classpath with those dependencies, but if I use the alias it will run the exec-fn function and exit.