Skip to content

Commit

Permalink
chore: setup vitest and testing-library
Browse files Browse the repository at this point in the history
Balastrong committed Sep 11, 2024

Verified

This commit was signed with the committer’s verified signature.
Spomky Florent Morselli
1 parent e4fbd8a commit 977b5b6
Showing 3 changed files with 1,305 additions and 41 deletions.
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"test": "vitest",
"format:check": "prettier --check ./src",
"format:fix": "prettier --write ./src",
"supabase-types-gen": "supabase gen types typescript --project-id bqlqcmtccbsiocjopvas > src/lib/supabase/types.gen.ts"
@@ -56,17 +57,21 @@
},
"devDependencies": {
"@octokit/types": "^13.5.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.0.1",
"@types/canvas-confetti": "^1.6.4",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"eslint": "^8",
"eslint-config-next": "14.2.4",
"jsdom": "^25.0.0",
"postcss": "^8",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.5",
"supabase": ">=1.8.1",
"tailwindcss": "^3.4.9",
"typescript": "^5"
"typescript": "^5",
"vitest": "^2.0.5"
}
}
1,328 changes: 1,290 additions & 38 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineConfig } from "vitest/config"

export default defineConfig({
test: {
environment: "jsdom",
},
})

0 comments on commit 977b5b6

Please sign in to comment.