mirror of
https://github.com/penpot/penpot.git
synced 2025-02-02 04:19:08 -05:00
🚧 Update docker deps and start working on test coverage.
This commit is contained in:
parent
95717c4c32
commit
16fa6259ea
7 changed files with 40 additions and 18 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -9,6 +9,7 @@ figwheel_server.log
|
||||||
.nrepl-port
|
.nrepl-port
|
||||||
.cpcache
|
.cpcache
|
||||||
.rebel_readline_history
|
.rebel_readline_history
|
||||||
|
.nyc_output
|
||||||
/vendor/**/target
|
/vendor/**/target
|
||||||
/cd.md
|
/cd.md
|
||||||
node_modules
|
node_modules
|
||||||
|
@ -32,6 +33,7 @@ node_modules
|
||||||
/docker/images/bundle*
|
/docker/images/bundle*
|
||||||
/common/.shadow-cljs
|
/common/.shadow-cljs
|
||||||
/common/target
|
/common/target
|
||||||
|
/common/coverage
|
||||||
/.clj-kondo/.cache
|
/.clj-kondo/.cache
|
||||||
/bundle*
|
/bundle*
|
||||||
/media
|
/media
|
||||||
|
|
|
@ -57,6 +57,7 @@
|
||||||
:app.http/server
|
:app.http/server
|
||||||
:app.http/router
|
:app.http/router
|
||||||
:app.notifications/handler
|
:app.notifications/handler
|
||||||
|
:app.loggers.sentry/reporter
|
||||||
:app.http.oauth/google
|
:app.http.oauth/google
|
||||||
:app.http.oauth/gitlab
|
:app.http.oauth/gitlab
|
||||||
:app.http.oauth/github
|
:app.http.oauth/github
|
||||||
|
|
|
@ -6,6 +6,12 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"luxon": "^1.27.0"
|
"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": {
|
"devDependencies": {
|
||||||
"source-map-support": "^0.5.19",
|
"source-map-support": "^0.5.19",
|
||||||
"ws": "^7.4.6"
|
"ws": "^7.4.6"
|
||||||
|
|
|
@ -6,12 +6,17 @@
|
||||||
:builds
|
:builds
|
||||||
{:test
|
{:test
|
||||||
{:target :node-test
|
{:target :node-test
|
||||||
:output-to "target/tests.js"
|
:output-to "target/test.js"
|
||||||
|
:output-dir "target/test/"
|
||||||
:ns-regexp "^app.common.*-test$"
|
:ns-regexp "^app.common.*-test$"
|
||||||
;; :autorun true
|
:autorun true
|
||||||
|
|
||||||
:compiler-options
|
:compiler-options
|
||||||
{:output-feature-set :es-next
|
{:output-feature-set :es-next
|
||||||
:output-wrapper false
|
:output-wrapper false
|
||||||
|
:source-map true
|
||||||
|
:source-map-include-sources-content true
|
||||||
|
:source-map-detail-level :all
|
||||||
:warnings {:fn-deprecated false}}}}}
|
:warnings {:fn-deprecated false}}}}}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -10,16 +10,11 @@
|
||||||
[clojure.test :as t]))
|
[clojure.test :as t]))
|
||||||
|
|
||||||
(t/deftest concat-vec
|
(t/deftest concat-vec
|
||||||
(t/is (= [1 2 3]
|
(t/is (= [] (d/concat-vec)))
|
||||||
(d/concat-vec [1] #{2} [3])))
|
(t/is (= [1] (d/concat-vec [1])))
|
||||||
|
(t/is (= [1] (d/concat-vec #{1})))
|
||||||
(t/is (= [1 2]
|
(t/is (= [1 2] (d/concat-vec [1] #{2})))
|
||||||
(d/concat-vec '(1) [2])))
|
(t/is (= [1 2] (d/concat-vec '(1) [2]))))
|
||||||
|
|
||||||
(t/is (= [1]
|
|
||||||
(d/concat-vec [1])))
|
|
||||||
|
|
||||||
(t/is (= [] (d/concat-vec))))
|
|
||||||
|
|
||||||
(t/deftest concat-set
|
(t/deftest concat-set
|
||||||
(t/is (= #{} (d/concat-set)))
|
(t/is (= #{} (d/concat-set)))
|
|
@ -3,10 +3,10 @@ LABEL maintainer="Andrey Antukh <niwi@niwi.nz>"
|
||||||
|
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
ENV NODE_VERSION=v14.17.6 \
|
ENV NODE_VERSION=v16.13.0 \
|
||||||
CLOJURE_VERSION=1.10.3.967 \
|
CLOJURE_VERSION=1.10.3.967 \
|
||||||
CLJKONDO_VERSION=2021.10.19 \
|
CLJKONDO_VERSION=2021.10.19 \
|
||||||
BABASHKA_VERSION=0.6.1 \
|
BABASHKA_VERSION=0.6.6 \
|
||||||
LANG=en_US.UTF-8 \
|
LANG=en_US.UTF-8 \
|
||||||
LC_ALL=en_US.UTF-8
|
LC_ALL=en_US.UTF-8
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,20 @@
|
||||||
:ns-regexp "^app.*-test$"
|
:ns-regexp "^app.*-test$"
|
||||||
;; :autorun true
|
;; :autorun true
|
||||||
|
|
||||||
:compiler-options
|
: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-feature-set :es8
|
||||||
:output-wrapper false
|
:output-wrapper false}}
|
||||||
:warnings {:fn-deprecated false}}}}}
|
|
||||||
|
}}}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue