Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/justsml/modern-app-template

🚀 Example mono-repo: Node.js 16, TypeScript, Jest, GH Actions. Many testing strategies featured! ✨
https://github.com/justsml/modern-app-template

integration-testing jest mocking nodejs pollyjs testing-strategy testing-techniques typescript unit-testing

Last synced: 3 months ago
JSON representation

🚀 Example mono-repo: Node.js 16, TypeScript, Jest, GH Actions. Many testing strategies featured! ✨

Awesome Lists containing this project

README

        

# Example Coding Patterns

- [x] [HTTP Validators](/packages/api-validator) (Zod, Joi, ad-hoc function)
- [x] Testing with variety of mocking strategies.
- [ ] Cypress E2E,
- [x] [Shallow fakes](/packages/api-validator/src/utils/mockFetch.ts),
- [x] [PollyJS](/packages/server/lib/github-api.test.ts),
- [ ] MSW,
- [ ] Mirage.
- [x] Pure unit tests.
- [x] [Test Scoping Patterns: Examples](/packages/demo-test-styles)
1. [Style 1: Inline Inputs & Outputs](/packages/demo-test-styles/src/index.style1.test.ts)
2. [Style 2: Local Helper Function](/packages/demo-test-styles/src/index.style2.test.ts)
3. [Style 3: Hierarchy & Scoped Tests](/packages/demo-test-styles/src/index.style3.test.ts)
- [x] Integrated [Server](/packages/server) & [Client](/src) example.
- [x] Yarn workspaces (multi `package.json`, single `node_modules`.)
- [x] Multi-project Jest w/ GH Action runner.