Fork me on GitHub
#cljsrn
<
2018-11-24
>
frankiesardo18:11:07

Hello all, I'm running cljs tests (using @olical great https://github.com/Olical/cljs-test-runner ) and when I load namespaces that require Expo code which is using ES6 module import I get “Uncaught SyntaxError: Unexpected String”. I'm not expert of js but how can I tell cljs test runners to not error when some of the modules use ES6? Has anyone run tests successfully against Expo? I see there is https://github.com/expo/expo/tree/master/packages/jest-expo for JS but I have no idea how to integrate it with cljs

gdanov23:11:43

I'm not expert in the tools you are using, but generally clojurescript uses goog.closure to rewrite the module specs in the files so maybe fiddling with this option will solve your problem https://clojurescript.org/reference/compiler-options#package-json-resolution