Node Adventures: Fast Testing, Smooth APIs and Seamless Client Generation
summary
Benchmarks show Node’s built-in test runner executes 10,000 simple tests in about 80 seconds versus ~900 seconds with Jest, and a migration of a real repo yields roughly 5x speedups; Jest also overrides Node globals breaking fetch mocks while the Node runner does not. Fastify provides schema validation and uses light my request inject to test routes without starting servers. Platformatic client generates fully typed clients from OpenAPI and runs in production to detect breaking changes, reducing CI time and flaky merges.
AI-written summary · about
chapters (12)
- 0:00Introduction and speaker background
- 1:48Pyramid of pain in testing
- 2:31Performance comparison of test runners
- 5:21Global override issues in Jest
- 7:10Dependencies and Node.js core
- 8:15Fastify’s developer experience benefits
- 9:18Testing without active servers
- 11:05API documentation and client generation
- 12:54Platformatic client integration
- 14:40Benefits for large codebases
- 16:05Starting with existing codebases
- 17:31Q&A and resources
