GitHub has announced a Free Tier for Github Copilot, and I’m excited to see how Copilot works in Github (i.e. how it can help improve my coding skills).

Visual Studio Code (VS Code)

My editor of choice is VS Code, and GitHub Copilot has an official extension within the Extensions Marketplace.

Testing Github Copilot

I’m still learning Vue and how to mock in Vitest. The original results generated some tests, but they failed as imports were missing. Then failures were occurring as Copilot didn’t seem to know that certain parts of the code (Vue-Router / Rendering) may need mocking.

But after a little time, and some adjusting of my questions GitHub Copilot has helped me to create a test that mocks some of the functions and passes. Now I need to read through it and understand what it has done.

GitHub Copilot creating a test containing some mocks