feat: add basic tests (#542)

* feat: add basic tests
This commit is contained in:
Kalidou Diagne
2025-08-11 12:36:12 +02:00
committed by GitHub
parent 327c36a429
commit 7b4084c4f7
48 changed files with 5433 additions and 1019 deletions

View File

@@ -3,7 +3,7 @@
"version": "0.0.2",
"private": true,
"engines": {
"node": ">=16.x"
"node": "22.x"
},
"scripts": {
"dev": "next dev",
@@ -16,7 +16,13 @@
"format:write": "prettier --write \"**/*.{ts,tsx,mdx}\" --cache",
"format:check": "prettier --check \"**/*.{ts,tsx,mdx}\" --cache",
"clean": "rm -rf .next/ out/",
"dev:discordbot": "nodemon --watch ./common/discord"
"dev:discordbot": "nodemon --watch ./common/discord",
"test": "vitest run",
"test:watch": "vitest --watch",
"test:ui": "vitest --ui",
"test:coverage": "vitest run --coverage",
"test:validation": "vitest run tests/validation.test.tsx",
"test:ci": "vitest run --reporter=verbose --no-coverage"
},
"dependencies": {
"@discordjs/rest": "2.0.0",
@@ -30,6 +36,7 @@
"@tw-classed/react": "^1.8.0",
"@types/prismjs": "^1.26.5",
"algoliasearch": "^4",
"autoprefixer": "^10.4.14",
"class-variance-authority": "^0.4.0",
"clsx": "^1.2.1",
"discord.js": "14.4.0",
@@ -40,9 +47,11 @@
"gray-matter": "^4.0.3",
"gsap": "^3.12.1",
"html-to-react": "^1.7.0",
"js-yaml": "^4.1.0",
"lucide-react": "0.105.0-alpha.4",
"next": "14",
"nodemon": "^3.0.3",
"postcss": "^8.4.24",
"prismjs": "^1.30.0",
"react": "^18.2.0",
"react-cookie": "^7.0.1",
@@ -58,6 +67,7 @@
"sharp": "^0.33.2",
"slick-carousel": "^1.8.1",
"tailwind-merge": "^1.12.0",
"tailwindcss": "^3.3.2",
"tailwindcss-animate": "^1.0.5",
"zustand": "^4.4.1"
},
@@ -65,33 +75,43 @@
"@eslint/js": "^9.19.0",
"@ianvs/prettier-plugin-sort-imports": "^3.7.2",
"@next/eslint-plugin-next": "^15.2.2",
"@testing-library/dom": "^10.4.1",
"@testing-library/jest-dom": "^6.6.4",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.6.1",
"@types/js-yaml": "^4.0.9",
"@types/node": "^17.0.45",
"@types/node": "^20.19.0",
"@types/react": "^18.2.7",
"@types/react-dom": "^18.2.4",
"@types/react-slick": "^0.23.13",
"@typescript-eslint/parser": "^5.59.7",
"autoprefixer": "^10.4.14",
"eslint": "^9.19.0",
"@vitejs/plugin-react": "^4.7.0",
"@vitest/coverage-v8": "3.2.4",
"@vitest/ui": "^3.2.4",
"eslint": "^8.57.0",
"eslint-config-next": "^15.2.2",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-tailwindcss": "^3.18.0",
"globals": "^15.14.0",
"happy-dom": "^18.0.1",
"husky": "^9.1.7",
"jsdom": "^26.1.0",
"lint-staged": "^15.4.3",
"postcss": "^8.4.24",
"prettier": "^3.4.2",
"tailwindcss": "^3.3.2",
"prettier": "^2.0.0",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^4.9.5",
"typescript-eslint": "^8.23.0"
"typescript": "^5.0.0",
"typescript-eslint": "^8.23.0",
"vite": "^7.0.6",
"vitest": "^3.2.4",
"vitest-canvas-mock": "^0.3.3"
},
"lint-staged": {
"**/*.{js,ts,tsx}": [
"prettier --write",
"eslint --fix",
"prettier --write"
"vitest run --passWithNoTests"
],
"**/*.{json,md,yml}": [
"prettier --write"