Enhance testing framework and add UI component tests. Integrated Vitest for testing with AstroContainer API. Updated package.json and bun.lock to include testing dependencies. Added comprehensive test cases for various UI components including Button, Alert, Badge, and more, ensuring proper rendering and functionality.

This commit is contained in:
qpismont committed 2025-08-01 16:41:58 +00:00
1 parent f6fe99001b
commit f801c96c96
27 files changed
+1923 -8

No files matched your search

+9 -2
View File
@@ -6,7 +6,10 @@
"dev": "bunx --bun astro dev",
"build": "bunx --bun astro build",
"preview": "bunx --bun astro preview",
"astro": "bunx --bun astro"
"astro": "bunx --bun astro",
"test": "vitest run",
"test:watch": "vitest",
"test:ui": "vitest --ui"
},
"dependencies": {
"@astrojs/node": "^9.3.1",
@@ -14,6 +17,10 @@
},
"devDependencies": {
"@biomejs/biome": "2.1.3",
"@types/bun": "^1.2.19"
"@testing-library/dom": "^10.4.1",
"@types/bun": "^1.2.19",
"@vitest/ui": "^3.2.4",
"happy-dom": "^18.0.1",
"vitest": "^3.2.4"
}
}