Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sombriks/sample-testable-code
sample code for blog post
https://github.com/sombriks/sample-testable-code
ava cross-env dotenv-flow knex koa sinon supertest
Last synced: 19 days ago
JSON representation
sample code for blog post
- Host: GitHub
- URL: https://github.com/sombriks/sample-testable-code
- Owner: sombriks
- Created: 2023-12-01T19:58:58.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-05T01:46:51.000Z (about 1 year ago)
- Last Synced: 2024-11-16T04:46:28.738Z (3 months ago)
- Topics: ava, cross-env, dotenv-flow, knex, koa, sinon, supertest
- Language: JavaScript
- Homepage: https://sombriks.com/blog/0060-testable-code/
- Size: 99.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [Is this code really testable?](https://github.com/sombriks/sample-testable-code)
Small snippets of code and tests for [this blog post](https://sombriks.com/blog/0060-testable-code/)
## Requirements
- node 18+
- docker 20+## Running
[Each project](01-barely-testable/README.md)
[has](02-some-modularization/README.md)
[its own](03-environment-aware/README.md)
[README.md](04-dependency-injection-points/README.md) and all of them will
expect a PostgreSQL database running.This project provides a [compose file](00-database/docker-compose.yml) so you
don't need to worry about it.To run the database:
```bash
docker compose -f 00-database/docker-compose.yml up
```## Further information
See blog post.