No More Mocking! Write Better Tests For Your Nuxt Application With Contract Tests
summary
Claims that replacing flaky mocks with an API‑first stubbed backend yields reliable end‑to‑end tests for Nuxt/Next applications. Uses an OpenAPI spec to drive a Specmatic stop server that returns realistic payloads and runs UI flows with Playwright, so tests exercise client code, server API routes (BFF), and mapping logic while isolating microservices. Demonstrated on a shopping‑list app where adding items through the Next API route succeeds against the stubbed service, enabling fast, deterministic regression tests.
AI-written summary · about
chapters (6)
- 0:00Write Better Tests For Your Nuxt Application With Contract Tests
- 3:51The Monolith
- 5:31SPAs
- 6:49Nuxt & Microservices
- 12:58Contract Testing
- 20:39Q&A
related talks
40mStrategic Business Functionality Testing: Accelerating Development Through Mocking
30mTips, Tricks, and Best Practices
21mTesting Vue Apps
27mEffectively Testing Services
30mVue Router, Hoisting Mocks and Unit Test Spaghetti
24mUsing API spec as an Executable Contract To Mock and Test Microservices
50mContract-Driven Development
01h 20mContract Driven Development-Deploying MicroServices Without Integration Testing
