This repository has been archived by the owner on Jun 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 84
Upgrade to ClojureScript 1.10 w/o Google Closure Compiler #379
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
9e2609d
Update code to ClojureScript 1.10.X
arichiardi d8b1db1
Bundle cljs.core.specs.alpha
arichiardi 30f1571
Use cljs.core/eval in lumo.core
arichiardi 74fd4a2
Use .lumo-cache as global cache folder
arichiardi a24cb3f
Make sure we do not throw when detecting directories
arichiardi faee652
Throw in case of :parallel-build
arichiardi 23dfa77
Init cljs.core/*print-newline* to true
arichiardi 4db6a36
Move lumo build api tests in their namespace for isolation
arichiardi fe7c66a
Sift core.cljs.cache.aot.json in boot test
arichiardi e49cee4
Temporary fix for Windows
anmonteiro b4cdb27
Fix yarn test-dev
arichiardi a681502
misc fixes
anmonteiro 0105166
tweaks to `lumo.closure`
anmonteiro e32788b
include `process.env` shim in the bundle again, small tweaks
anmonteiro eaecf64
fix annoying issue with reading analysis caches for absolute paths
anmonteiro ec70598
make npm deps tests pass
anmonteiro File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
(require '[cljs.test] | ||
'[lumo.test-runner] | ||
'[lumo.test-util] | ||
'[lumo.core :as lumo] | ||
;; needs to be here for testing get-completions | ||
'[goog :as g]) | ||
|
@@ -8,4 +9,36 @@ | |
(when-not (cljs.test/successful? m) | ||
(lumo/exit 1))) | ||
|
||
(defmethod cljs.test/report [:cljs.test/default :error] [m] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does adding the code below help you debug what's going on in tests? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep this is a better reporter basically, using this at work too, can take it away and add it in another PR as well if you want |
||
(cljs.test/inc-report-counter! :error) | ||
(println "\nERROR in" (cljs.test/testing-vars-str m)) | ||
(when (seq (:testing-contexts (cljs.test/get-current-env))) | ||
(println (cljs.test/testing-contexts-str))) | ||
(when-let [message (:message m)] (println message)) | ||
(let [actual (:actual m) | ||
ex-data (ex-data actual)] | ||
(if (:cljs.spec.alpha/failure ex-data) | ||
(do (println "expected:" (pr-str (:expected m))) | ||
(print " actual:\n") | ||
(println (.-message actual))) | ||
(cljs.test/print-comparison m)) | ||
(when lumo.test-util/*print-stack-traces* | ||
(println (.-stack actual))))) | ||
|
||
(defmethod cljs.test/report [:cljs.test/default :fail] [m] | ||
(cljs.test/inc-report-counter! :error) | ||
(println "\nERROR in" (cljs.test/testing-vars-str m)) | ||
(when (seq (:testing-contexts (cljs.test/get-current-env))) | ||
(println (cljs.test/testing-contexts-str))) | ||
(when-let [message (:message m)] (println message)) | ||
(let [actual (:actual m) | ||
ex-data (ex-data actual)] | ||
(if (:cljs.spec.alpha/failure ex-data) | ||
(do (println "expected:" (pr-str (:expected m))) | ||
(print " actual:\n") | ||
(println (.-message actual))) | ||
(cljs.test/print-comparison m)) | ||
(when lumo.test-util/*print-stack-traces* | ||
(println (.-stack actual))))) | ||
|
||
(lumo.test-runner/run-all-tests) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing moving the generated files for
cljs.core.specs.alpha
to thetarget
dirThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I thought I added those, will add them again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adressed.