Skip to content

Commit

Permalink
Setup cljs test environment
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkerlucio committed Aug 9, 2020
1 parent 6b8d44c commit 28eb2f1
Show file tree
Hide file tree
Showing 8 changed files with 2,125 additions and 87 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ pom.xml.asc
.nrepl-port
.cpcache/
.nrepl-port
node_modules/
8 changes: 6 additions & 2 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
:aliases
{:provided
{:extra-deps {org.clojure/clojure {:mvn/version "1.10.0"}
org.clojure/clojurescript {:mvn/version "1.10.520"}}}
org.clojure/clojurescript {:mvn/version "1.10.764"}}}

:graph-render
{:extra-deps {macroz/tangle {:mvn/version "0.2.1"}}}
Expand All @@ -20,4 +20,8 @@
:extra-deps {com.cognitect/test-runner {:git/url "https://github.com/cognitect-labs/test-runner.git"
:sha "209b64504cb3bd3b99ecfec7937b358a879f55c1"}
macroz/tangle {:mvn/version "0.2.1"}}
:main-opts ["-m" "cognitect.test-runner"]}}}
:main-opts ["-m" "cognitect.test-runner"]}

:test-cljs
{:extra-paths ["test"]
:extra-deps {thheller/shadow-cljs {:mvn/version "2.10.21"}}}}}
17 changes: 17 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = function (config) {
config.set({
browsers: ['ChromeHeadless'],
// The directory where the output file lives
basePath: 'target',
// The file itself
files: ['ci.js'],
frameworks: ['cljs-test'],
plugins: ['karma-cljs-test', 'karma-chrome-launcher'],
colors: true,
logLevel: config.LOG_INFO,
client: {
args: ["shadow.test.karma.init"],
singleRun: true
}
})
};
Loading

0 comments on commit 28eb2f1

Please sign in to comment.