Skip to content

Commit

Permalink
chore(config): adds example test
Browse files Browse the repository at this point in the history
  • Loading branch information
csantiago132 committed Dec 9, 2024
1 parent dafe1b7 commit 8b8a3c7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
11 changes: 11 additions & 0 deletions app/sum.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { describe, expect, it } from 'vitest';

function sum(a: number, b: number): number {
return a + b;
}

describe('sum function', () => {
it('should add two numbers correctly', () => {
expect(sum(1, 2)).toBe(3);
});
});
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"semantic-release": "^23.0.2",
"typescript": "^5.4.2",
"vite": "^5.1.0",
"vite-tsconfig-paths": "^4.2.1"
"vite-tsconfig-paths": "^4.2.1",
"vitest": "^2.1.8"
},
"engines": {
"node": ">=20"
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8b8a3c7

Please sign in to comment.