feat: add Vitest configuration and tests for lesson modules and rendering

This commit is contained in:
Michael Czechowski
2025-05-13 21:07:04 +02:00
parent 94bd7ba0cb
commit 61211d190f
9 changed files with 2325 additions and 51 deletions

View File

@@ -8,7 +8,11 @@
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"test": "vitest"
"test": "vitest run",
"test.watch": "vitest watch",
"test.coverage": "vitest run --coverage",
"format": "prettier --write src/ tests/ package.json vite.config.js vitest.config.js",
"format.lessons": "prettier --write lessons/*.json"
},
"keywords": [
"css",
@@ -20,7 +24,15 @@
"author": "Michael Czechowski <mail@dailysh.it>",
"license": "Copyright Michael Czechowski 2025",
"devDependencies": {
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@vitest/coverage-v8": "^3.1.3",
"jsdom": "^26.1.0",
"prettier": "^3.5.3",
"vite": "^6.3.5",
"vitest": "^3.1.3"
},
"dependencies": {
"whatwg-fetch": "^3.6.20"
}
}