Skip to content

Commit

Permalink
Fix cljs headless tests
Browse files Browse the repository at this point in the history
  • Loading branch information
skydread1 committed Oct 26, 2023
1 parent d6792b5 commit 74fafad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ jobs:
- name: Run the clj tests
run: clojure -A:jvm-base:server/test

## Not working as for now, refer to tests.cljs.edn
#- name: Run the cljs tests
# run: clojure -A:jvm-base:client:web/test-headless
- name: Run the cljs tests
run: clojure -A:jvm-base:client:web/test-headless

- name: Build main.js
run: clojure -T:build js-bundle
Expand All @@ -40,4 +39,4 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
ECR_REPO: ${{ secrets.ECR_REPO }}
run: clojure -T:jib build
run: clojure -T:jib build
6 changes: 3 additions & 3 deletions tests.cljs.edn
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
^{:launch-js
;; mac
#_["/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
"--headless" "--disable-gpu" "--repl" "--disable-dev-shm" "--dump-dom" :open-url]
"--headless" "--remote-debugging-port=9222" :open-url]
;; ubuntu
["/opt/google/chrome/chrome"
"--headless" "--disable-gpu" "--repl" "--disable-dev-shm" :open-url]}
"--headless" "--remote-debugging-port=9222" :open-url]}
{:main flybot.client.web.test-runner}

;; ::TOFIX
;; Terminal hangs at:
;; Launching Javascript environment with script: ["/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" "--headless" "--disable-gpu" "--repl" "--disable-dev-shm" "--dump-dom" :open-url]
;; Environment output being logged to: target/public/cljs-out/tests/js-environment.log
;; Environment output being logged to: target/public/cljs-out/tests/js-environment.log

0 comments on commit 74fafad

Please sign in to comment.