I have a working Reagent single-page app, and a very primitive cljs test:
(ns outlines.test
(:require-macros [cemerick.cljs.test
:refer (is deftest with-test run-tests testing test-var)])
(:require [cemerick.cljs.test :as t]
;;[outlines]
))
(deftest demo
(is (= 1 1)))
When I run this test via 'lein cljsbuild test' after adding react.js as the
preamble, I get this error:
TypeError: 'undefined' is not a function (evaluating
'RegExp.prototype.test.bind(
/^(data|aria)-[a-z_][a-z\d_.\-]*$/
)')
resources/public/js/outlines-testing.js:1794
resources/public/js/outlines-testing.js:4 in s
resources/public/js/outlines-testing.js:4
resources/public/js/outlines-testing.js:8241
resources/public/js/outlines-testing.js:4 in s
resources/public/js/outlines-testing.js:4
resources/public/js/outlines-testing.js:3665
resources/public/js/outlines-testing.js:4 in s
resources/public/js/outlines-testing.js:4 in e
resources/public/js/outlines-testing.js:17226
resources/public/js/outlines-testing.js:4
resources/public/js/outlines-testing.js:17228
ERROR: cemerick.cljs.test was not required.
You can resolve this issue by ensuring [cemerick.cljs.test] appears
in the :require clause of your test suite namespaces.
Also make sure that your build has actually included any test files.
Any ideas?
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.