https://github.com/oreqizer/todo-spec
TODO app with a ridiculously overkilled test suite. 📜
https://github.com/oreqizer/todo-spec
playwright testing todo vitest
Last synced: 4 months ago
JSON representation
TODO app with a ridiculously overkilled test suite. 📜
- Host: GitHub
- URL: https://github.com/oreqizer/todo-spec
- Owner: oreqizer
- Created: 2024-01-13T12:56:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-21T12:14:48.000Z (over 1 year ago)
- Last Synced: 2025-02-01T06:45:40.123Z (5 months ago)
- Topics: playwright, testing, todo, vitest
- Language: TypeScript
- Homepage:
- Size: 1.52 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# todo spec
A demo TODO app with a filesystem database. :scroll: For demonstrating testing. Has dark mode!

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 shouldTo 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