Skip to content

Instantly share code, notes, and snippets.

@sarachen19
sarachen19 / gist:aca0c1f94c70948c0843bb8349156c21
Created October 8, 2025 13:47
copilot-unit-test-guide.md
Absolutely ✅ — since you’re going with the **Mocha + Chai + Sinon + NYC** stack, I can rewrite the Copilot Markdown instructions to reflect that. This version will focus on **unit testing using Mocha as the test runner, Chai for assertions, Sinon for mocks/stubs/spies, and NYC for coverage**.
Here’s the updated Markdown file:
---
````markdown
# 🧪 GitHub Copilot Custom Instructions — Unit Testing (Node.js with Mocha, Chai, Sinon, NYC)
These guidelines instruct GitHub Copilot on how to generate **unit tests** for this Node.js project using **Mocha**, **Chai**, **Sinon**, and **NYC**.