Add Vitest and unit tests for src/lib/ (#242)

* Add Vitest and unit tests for src/lib/ utilities

Closes #241

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* update node types

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
tmshvandClaude Opus 4.6 authored and GitHub committed 2026-02-08 02:32:06 +07:00
1 parent a5bd82eb3c
commit f5a95f57c8
11 files changed
+1686 -48

No files matched your search

+8 -6
View File
@@ -11,7 +11,8 @@
"lint": "eslint .",
"format": "eslint --fix .",
"sitemap": "node scripts/sitemap.js",
"feed": "node scripts/feed.js"
"feed": "node scripts/feed.js",
"test": "vitest run"
},
"repository": {
"type": "git",
@@ -40,17 +41,18 @@
},
"devDependencies": {
"@eslint/eslintrc": "^3.3.1",
"@typescript-eslint/eslint-plugin": "^8.54.0",
"@typescript-eslint/parser": "^8.54.0",
"@types/classnames": "^2.2.10",
"@types/markdown-it": "^12.2.3",
"@types/node": "^18.13.0",
"@types/node": "^22.19.9",
"@types/react": "^18.0.18",
"@types/sharp": "^0.29.2",
"@typescript-eslint/eslint-plugin": "^8.54.0",
"@typescript-eslint/parser": "^8.54.0",
"eslint": "^9.0.0",
"eslint-config-next": "^15.5.0",
"feed": "^4.1.0",
"eslint": "^9.0.0",
"globals": "^16.0.0",
"typescript": "^5.9.0"
"typescript": "^5.9.0",
"vitest": "^4.0.18"
}
}