oreqizer / todo-spec

TODO app with a ridiculously overkilled test suite. πŸ“œ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

todo spec

A demo TODO app with a filesystem database. πŸ“œ For demonstrating testing. Has dark mode!

Sneakpeek

Based on TodoMVC, except I changed the design a little so it is actually visible.

Before running, create a db.json file at the root of the project with [] as its content.

Tests

The meat-and-potatoes of this project are its tests. There are five types of tests used:

  • UI tests that verify the application works according to its specification
  • Layout visual tests that make sure the app is composed as it should
  • Accessibility tests that check the app is accessible
  • Unit tests that verify core business logic of the app
  • Component visual tests that make sure individual components look as they should

To run them:

  • pnpm verify runs UI, a11y and layout visual tests
  • pnpm test-ct runs component visual tests
  • pnpm test runs unit tests

License

MIT

About

TODO app with a ridiculously overkilled test suite. πŸ“œ


Languages

Language:TypeScript 95.0%Language:JavaScript 2.8%Language:CSS 1.6%Language:HTML 0.6%