0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-06 14:50:20 -05:00

🚧 Update docker deps and start working on test coverage.

This commit is contained in:
Andrey Antukh 2021-11-30 17:22:17 +01:00
parent 95717c4c32
commit 16fa6259ea
7 changed files with 40 additions and 18 deletions

2
.gitignore vendored
View file

@ -9,6 +9,7 @@ figwheel_server.log
.nrepl-port
.cpcache
.rebel_readline_history
.nyc_output
/vendor/**/target
/cd.md
node_modules
@ -32,6 +33,7 @@ node_modules
/docker/images/bundle*
/common/.shadow-cljs
/common/target
/common/coverage
/.clj-kondo/.cache
/bundle*
/media

View file

@ -57,6 +57,7 @@
:app.http/server
:app.http/router
:app.notifications/handler
:app.loggers.sentry/reporter
:app.http.oauth/google
:app.http.oauth/gitlab
:app.http.oauth/github

View file

@ -6,6 +6,12 @@
"dependencies": {
"luxon": "^1.27.0"
},
"scripts": {
"compile-and-watch-test": "clojure -M:dev:shadow-cljs watch test",
"compile-test": "clojure -M:dev:shadow-cljs compile test --config-merge '{:autorun false}'",
"run-test": "node target/test.js",
"test": "yarn run compile-test && yarn run run-test"
},
"devDependencies": {
"source-map-support": "^0.5.19",
"ws": "^7.4.6"

View file

@ -6,12 +6,17 @@
:builds
{:test
{:target :node-test
:output-to "target/tests.js"
:output-to "target/test.js"
:output-dir "target/test/"
:ns-regexp "^app.common.*-test$"
;; :autorun true
:autorun true
:compiler-options
{:output-feature-set :es-next
:output-wrapper false
:source-map true
:source-map-include-sources-content true
:source-map-detail-level :all
:warnings {:fn-deprecated false}}}}}

View file

@ -10,16 +10,11 @@
[clojure.test :as t]))
(t/deftest concat-vec
(t/is (= [1 2 3]
(d/concat-vec [1] #{2} [3])))
(t/is (= [1 2]
(d/concat-vec '(1) [2])))
(t/is (= [1]
(d/concat-vec [1])))
(t/is (= [] (d/concat-vec))))
(t/is (= [] (d/concat-vec)))
(t/is (= [1] (d/concat-vec [1])))
(t/is (= [1] (d/concat-vec #{1})))
(t/is (= [1 2] (d/concat-vec [1] #{2})))
(t/is (= [1 2] (d/concat-vec '(1) [2]))))
(t/deftest concat-set
(t/is (= #{} (d/concat-set)))

View file

@ -3,10 +3,10 @@ LABEL maintainer="Andrey Antukh <niwi@niwi.nz>"
ARG DEBIAN_FRONTEND=noninteractive
ENV NODE_VERSION=v14.17.6 \
ENV NODE_VERSION=v16.13.0 \
CLOJURE_VERSION=1.10.3.967 \
CLJKONDO_VERSION=2021.10.19 \
BABASHKA_VERSION=0.6.1 \
BABASHKA_VERSION=0.6.6 \
LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8

View file

@ -65,7 +65,20 @@
:ns-regexp "^app.*-test$"
;; :autorun true
:compiler-options
{:output-feature-set :es8
:output-wrapper false
:warnings {:fn-deprecated false}}}}}
:release
{:compiler-options
{:pseudo-names true
:pretty-print true
:source-map true
:source-map-include-sources-content true
:source-map-detail-level :all
:optimizations :whitespace
:fn-invoke-direct true}}
:dev
{:compiler-options
{:output-feature-set :es8
:output-wrapper false}}
}}}