This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-29
Channels
- # beginners (42)
- # boot (12)
- # cider (3)
- # cljs-dev (277)
- # cljsrn (44)
- # clojure (127)
- # clojure-austin (9)
- # clojure-austria (1)
- # clojure-brasil (14)
- # clojure-canada (1)
- # clojure-dev (22)
- # clojure-dusseldorf (1)
- # clojure-italy (4)
- # clojure-russia (24)
- # clojure-spec (33)
- # clojure-taiwan (1)
- # clojure-uk (21)
- # clojure-ukraine (8)
- # clojurescript (134)
- # core-async (41)
- # core-logic (8)
- # cursive (1)
- # datomic (3)
- # ethereum (1)
- # events (4)
- # funcool (1)
- # leiningen (12)
- # off-topic (21)
- # om (19)
- # onyx (45)
- # overtone (1)
- # parinfer (2)
- # pedestal (3)
- # proton (2)
- # re-frame (103)
- # reagent (48)
- # test-check (27)
- # untangled (51)
- # vim (3)
hey guys… does anyone know why
(defspec foo-test 100
(prop/for-all [m (s/gen ::bool-kv)] ,,,
is failing when run in clojurescript with lein-doo in phantomjs? throws this:
ERROR in (foo-test) (clojure$test$check$generators$call_gen@file:222:20)
Uncaught exception, not in assertion.
expected: nil
actual: #object[TypeError TypeError: null is not an object (evaluating 'generator_fn.call')]
@ag my work mate had a similar problem to that and it was due to not requiring something
I was surprised that cljsbuild didn’t warn about it
Your mileage may vary, but it’s worth checking
actually same code works when compiled javascript directly passed to karma (without using lein-doo)
Are they using different compiler modes? i.e. advanced vs none?
it completely breaks with :simple.
java.lang.AssertionError: Assert failed: No file for namespace my-app.test-runner exists
with :whitespace it fails with a different error:
Error: Cannot find module 'function (f) {if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.React = f()}}’
Seems like a require error, but I don’t know too much more
I have created issue https://github.com/bensu/doo/issues/118
I think it’s quite likely not to be a doo error
Try requiring clojure.test.check.generators
Possibly shouldn’t need to, but I think it might be a bug in the cljs compiler if it’s not warning about it
I asked my co-worker and his was clojure.test.check.properties
OK, I’ve got nothing then 🙂