Fork me on GitHub

@frankie NodeJS doesn’t really support ES6 modules out of the box so I suspect you’ll have to use babel or webpack to compile those files. What we do is just to mock out all dependencies using since I don’t want to test the external libraries anyway.


Ah, nice that's helpful


Have you got an example on how to integrate that with cljs and expo?


I don’t use expo unfortunately. Pro tip though, if you use re-frame + spec, focus on testing business logic since we haven’t have a single error in a component since we started almost 3 years ago. re-frame + spec works so well that we only test the handlers, subscriptions and other logic since that’s where the errors typically occur.


hello folks, i inherited this cljsrn codebase and I'm trying to upgrade the android SDK to v26 with React 16.4 and RN 0.56. the debug build works great but the release build fails with the following call stack:

2018-11-21 10:31:30.731 16727-16790/? E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
    Process: , PID: 16727
    com.facebook.react.common.JavascriptException: Can't find variable: a, stack:
    global code@322:8
        at com.facebook.react.modules.core.ExceptionsManagerModule.showOrThrowError(
        at com.facebook.react.modules.core.ExceptionsManagerModule.reportFatalException(
        at java.lang.reflect.Method.invoke(Native Method)
        at com.facebook.react.bridge.JavaMethodWrapper.invoke(
        at com.facebook.react.bridge.JavaModuleWrapper.invoke(
        at Method)
        at android.os.Handler.handleCallback(
        at android.os.Handler.dispatchMessage(
        at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(
        at android.os.Looper.loop(
        at com.facebook.react.bridge.queue.MessageQueueThreadImpl$
any ideas on how to get the non-minified version of the call stack? is the minification done by the cljs to js compiler? or the RN bundler/packager? i'm currently using advanced optimizations on the cljs to js compiler. if i switch it to whitespace optimizations, then i get a build error
transform[stderr]: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
i can work around it by doing the bundling separately
node --expose-gc --max_old_space_size=4096 ./node_modules/react-native/local-cli/cli.js bundle --verbose --platform android --dev true --reset-cache --entry-file --bundle-output /usr/src/app/android/app/build/intermediates/assets/release/ --assets-dest /usr/src/app/android/app/build/intermediates/res/merged/release
But I hit another failure
Unable to load script from assets ''.
Any ideas what else I can try?