I have the following code:
(defconst cljs-test-report-buffer "*cljs-test-report*" "Buffer name in which to display test reports.") (defun cider-test-show-report () "Show the test report buffer, if one exists." (interactive) (if-let* ((report-buffer (get-buffer cljs-test-report-buffer))) (switch-to-buffer report-buffer) (message "No test report buffer"))) (defun run-cljs-test-in-ns () (interactive) (cider-interactive-eval "(cljs.test/run-tests)")) ;; want to show this result in the ```cljs-test-report-buffer```
And I want to show the result of the
run-cljs-test-in-ns function in a new buffer, that is cleared every time this function is run. How can I do that?