goldbergyoni / goldbergyoni/nodejs-testing-best-practices

Kicking off 🎉

Open
#1 17 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.4k
Forks
288
PR merge metrics
No merged PRs in 30d

Description

@jhenaoz @mikicho @Thormod

I'm excited to kick-off this project which I find to be super-important. We all know how tricky is perfecting the environment and the integration tests themselves. This can be a great source for many and our playground to master this technique. We will receive feedback and validation from the community and there is no better way for self-improvement.

I suggest the following workflow:
1. Put a meeting on the calendar for next week. It's always nice to see at least once the people you work with. When might be a good time?
2. Pick your favorite feature below to nurture: Push it in your convenient time, share your thoughts and progress in our meeting. This OSS world so obviously progress on your own pace whether this means just reading 5min about this feature or coding 100 lines of code. Accomplish this feature in 3 days or one year. Dedicate to this lib 5 min/month or 20 hours, whatever works for you!

**List of features**

- Tests against API
- Isolating 3rd party services
- Stubbing the backend behavior to simulate corner cases
- Authentication/Login ✨
- Database setup with speedy RAM folder that supports both Linux, Mac & Windows ✨
- Local env setup for speedy and convenient tests ✨
- Documentation based contract tests (validating Swagger correctness) ✨
- Consumer-driven contract tests (with PACT) ✨
- Tests with message queues ✨
- Schema migration and seeding ✨
- Data seeding ✨
- Data cleanup ✨
- Error handling tests ✨
- Testing for proper logging and metrics ✨
- Debug configuration and other dev tooling ✨
- Frameworks examples: Serverless, Nest, Fastify, Koa ✨

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.