Last active
June 2, 2020 15:00
-
-
Save thumbnail/2f31edcda5ec19e5af75374024f0152b to your computer and use it in GitHub Desktop.
disable ansi colors matcher-combinators cursive
This file contains hidden or 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
;; cursives popup with test-failure information doesn't support ansi. | |
;; adding this profile to your profiles.clj surpresses ansi colors from poluting the popup | |
{ :matcher-combinators {:dependencies [[nubank/matcher-combinators "1.2.7"]] | |
:injections [(try | |
(require '[matcher-combinators.printer]) | |
(catch java.io.FileNotFoundException _ nil)) | |
(alter-var-root #'matcher-combinators.printer/colorized-print | |
(fn [f] ;; disable ansi support | |
(fn colorized-print [{:keys [expression]}] | |
(clojure.pprint/write-out expression))))]}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This alteration makes sure to disable ansi colors only inside a cursive test,keeping the colors otherwise