ckolderup / postmarks

a single-user bookmarking website designed to live on the Fediverse
https://postmarks.glitch.me
MIT License
452 stars 38 forks source link

Introduce testing #169

Open johnholdun opened 7 months ago

johnholdun commented 7 months ago

This patch brings Jest into the repo, adds coverage to timeSince, and provides the very beginning of a set of browser-based integration tests. The integration tests are skipped by default because they are too fragile, but can be run locally by changing describe.skip to describe.

I have no strong feelings on jest vs any other testing framework—this is just the one I've used the most. Happy to accept any alternatives!

Closes #21.