feat: jest

This commit is contained in:
Dogtiti
2024-08-06 18:03:27 +08:00
parent 94c4cf0624
commit 1ef2aa35e9
5 changed files with 2083 additions and 103 deletions

9
test/sum-module.test.ts Normal file
View File

@@ -0,0 +1,9 @@
function sum(a: number, b: number) {
return a + b;
}
describe("sum module", () => {
test("adds 1 + 2 to equal 3", () => {
expect(sum(1, 2)).toBe(3);
});
});