Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(ns app.test-runner
(:require [clojure.test :refer [deftest is run-tests]]))
(deftest is-this-working?
(is (= 1 2)))
(defmethod cljs.test/report [:cljs.test/default :end-run-tests] [m]
(when-not (cljs.test/successful? m)
(throw "Test failed")))
(defn -main []
(run-tests))
version: 2
jobs:
build:
working_directory: ~/repo
docker:
- image: circleci/clojure:tools-deps-node
environment:
LEIN_ROOT: nbd
JVM_OPTS: -Xmx3200m
steps:
- checkout
- run: clojure -m cljs.main -re node -m app.test-runner
{:paths ["src" "test]
:deps {org.clojure/clojure {:mvn/version "1.10.1"}
org.clojure/clojurescript {:mvn/version "1.10.597"}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment