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:
11
package.json
11
package.json
@ -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"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user