isamplesorg / isamples_webui

Web interface to iSB and iSC APIs

Home Page:https://isamplesorg.github.io/isamples_webui/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set up automated tests to ensure build output passes a sanity check

dannymandel opened this issue · comments

We recently had a bug where our built JS was in a bad state. It would be good if we had an automated check that prevented this. Jest appears to be a framework that would let us make assertions on the JS output:

https://jestjs.io/docs/tutorial-react

It's unclear if it would work for our purposes, but it's worth an investigation.

On further investigation, I'm not certain it would have caught this bug, but I do think we should have some tests in place on our JavaScript app.