Member-only story
How to quickly test your Next.js apps with Cypress and Github Copilot
You might actually enjoy writing tests after this! Maybe.
If you want to instantly double any development timeline, add tests. — the old me
I used to hate writing tests. I’ve spent hours writing tests in order to hit the sacred “code coverage percentage” only to discover my app still has bugs. Depending on the framework you’re using there could be massive amounts of boilerplate and repetitive code. The good news is that we have AI tools to do that for us in today's development ecosystem.
I’m going to save you hours of development time by showing you how to quickly get started with two powerful tools. Cypress and Github Copilot. We will be using Next.js as our example project but you can use any framework you like. ( Angular, React, Vue, etc. )
Disclaimer: ⚠️ This article is not a comprehensive Cypress or Next.js tutorial. You don’t need any prior experience with either technology to follow along. Just make sure you have NPM installed on your system and a code editor like VS Code ready to go. If you want to learn more about either technology check out their documentation pages. The final spec file is at the bottom. 👇
I’m going to break this setup down into a step-by-step process: