Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jcserv committed Oct 16, 2024
1 parent 39c4d02 commit 2ffd5b2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint": "prettier . --write && eslint . --fix",
"test": "pnpm test:types && pnpm test:jest && pnpm test:cypress:ci",
"test:jest": "jest",
"test:cypress:ci": "cypress run --component --browser chrome --spec",
"test:cypress:ci": "cypress run --component --browser chrome",
"test:cypress:dev": "cypress open --component --browser chrome",
"test:types": "tsc --noEmit"
},
Expand All @@ -30,6 +30,7 @@
"devDependencies": {
"@cypress/react18": "^2.0.1",
"@eslint/js": "^9.12.0",
"@jest/globals": "^29.7.0",
"@tanstack/router-devtools": "^1.65.0",
"@tanstack/router-plugin": "^1.65.0",
"@types/jest": "^29.5.13",
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.

3 changes: 2 additions & 1 deletion src/lib/utils.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { add } from "./utils";
import { expect } from '@jest/globals';

describe('add', () => {
it('should add two numbers', () => {
expect(add(1, 2)).equal(3);
expect(add(1, 2)).toBe(3);
});
});

0 comments on commit 2ffd5b2

Please sign in to comment.