stellasia / neomap

A Neo4j Desktop application to visualize nodes with geographic attributes on a map.
GNU General Public License v3.0
106 stars 13 forks source link

Test with jest #73

Closed okjodom closed 4 years ago

okjodom commented 4 years ago

This PR closes first part of #62.

It reconsiders the tests and testing infrastructure, proposing Jest test runner and React Testing Library. Jest gives an advantage of being able to run non-react / non-ui tests so we can use the same runner to test services and other utils. React testing lib has an interesting philosophy of testing user actions and interactivity, rather than component state. Tests introduced don't provide adequate coverage; Additions to the suites introduced here is most welcome :) CI loop was not investigated.

stellasia commented 4 years ago

FYI, I pushed a small update to the master branch to trigger Actions on PR. You'll have to update your branch (can wait until your next PR)

Thanks for this nice PR!