This example renders an Elixir/Phoenix EEx template in a JavaScript tests. I'm using cell-js and ex_css_modules to scope JS/CSS.
Rendering the template works like a charm. But when using CSS Modules the scoped classnames mapping (style.css.json
file) needs to be present, otherwise rendering the template errors.
mocha test/**/*_test.js --recursive --require test/test_setup.js --timeout 10000