Creating unit tests
Create unit test with GitHub Copilot
Description
Example
function add(x, y) {
return x + y;
}const assert = require('assert');
describe('add function', () => {
it('should add two numbers correctly', () => {
assert.equal(add(2, 3), 5);
});
});Exercise
Checklist for Further Learning
Last updated