<p></p>
<p dir="auto">I've had a look at this today, with partial success. Some notes:</p>
<ul dir="auto">
<li>I thought it might be possible to run the mocha/chai tests directly, i.e. keep everything in the nodejs ecosystem and avoid any integration with rails. But due to the use of compiled assets needed for the code under test, that's definitely swimming against the tide. So I've looked into alternatives to konacha (last commit 2016).</li>
<li>The requirements are that the test framework has some level of rails integration (to get the assets from app/javascripts, vendor/assets, etc all pulled together easily) and can run mocha tests with chai assertions.</li>
<li><a href="https://github.com/jejacks0n/teaspoon">https://github.com/jejacks0n/teaspoon</a> fits the bill, although that was last updated in early 2021. I've <a href="https://github.com/gravitystorm/openstreetmap-website/tree/teaspoon">got a branch which works locally</a>, but I haven't yet got it working on github-ci.</li>
<li><a href="https://github.com/searls/jasmine-rails">jasmine-rails</a> has been deprecated (2020) and so has the <a href="https://github.com/jasmine/jasmine-gem">Jasmine ruby gem</a> (2022), but these were apparently in popular use after the konacha era. The suggested replacement for these is running the nodejs version of jasmine. That's rather like point 1 though, but also requires refactoring the tests away from mocha/chai.</li>
</ul>
<p dir="auto">If anyone has any suggestions then I'm all ears!</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/2595#issuecomment-1371111340">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLFUOPQL2LF5B42AELWQWNAJANCNFSM4MNEUPHQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLK7PRFGVSFO76QZFKLWQWNAJA5CNFSM4MNEUPH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOKG4X7LA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/2595/1371111340</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/2595#issuecomment-1371111340",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2595#issuecomment-1371111340",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>