mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 16:41:08 +02:00
CI previously ran `pnpm run test || true` — test failures were silently
swallowed with no artifact, so we had no visibility into what was actually
passing across 1,296 test files.
- New `test:coverage` turbo pipeline task + root script; packages that opt
in by declaring their own `test:coverage` get picked up automatically.
- Wired up three high-value Vitest targets: apps/mana/apps/web (main
frontend, ~590 tests), shared-ui (Svelte component library), and
shared-storage (S3 client). Each emits lcov.info + coverage-summary.json
+ browsable HTML.
- apps/mana/apps/web `"test"` was running in watch mode (just `vitest`),
which hangs under turbo orchestration — changed to `vitest run` and
added `test:watch` for the interactive case.
- CI uploads coverage artifacts (14-day retention) regardless of whether
tests passed. `continue-on-error: true` replaces `|| true` so a failed
suite shows up as a warning annotation on the PR rather than being
invisible. Flip to a hard gate once main is green for a full week.
- Testing guideline documents the pattern + the template vitest config
+ the planned 80% threshold.
- ESLint flat-config `vitest.config.ts` ignore only matched at the root;
widened to `**/vitest.config.{ts,js,mjs}` so nested configs don't trip
the project-service parser.
Coverage baseline produced locally:
shared-storage: 91.37% lines (6 files, 123 tests)
shared-ui: 2.87% lines (mostly Svelte components, untested)
apps/mana/web: 9/59 test files fail — pre-existing, not regression
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
94 lines
2.9 KiB
JSON
94 lines
2.9 KiB
JSON
{
|
|
"name": "@mana/web",
|
|
"version": "0.2.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "vite dev",
|
|
"build": "vite build",
|
|
"preview": "vite preview",
|
|
"prepare": "svelte-kit sync || echo ''",
|
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
"format": "prettier --write .",
|
|
"lint": "prettier --check . && NODE_OPTIONS=--max-old-space-size=8192 eslint .",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:ui": "vitest --ui",
|
|
"test:coverage": "vitest run --coverage",
|
|
"test:e2e": "playwright test"
|
|
},
|
|
"devDependencies": {
|
|
"@mana/shared-pwa": "workspace:*",
|
|
"@mana/shared-vite-config": "workspace:*",
|
|
"@playwright/test": "^1.51.0",
|
|
"@sveltejs/adapter-node": "^5.0.0",
|
|
"@sveltejs/kit": "^2.47.1",
|
|
"@sveltejs/vite-plugin-svelte": "^5.0.4",
|
|
"@tailwindcss/typography": "^0.5.19",
|
|
"@tailwindcss/vite": "^4.1.7",
|
|
"@types/node": "^22.10.5",
|
|
"@vite-pwa/sveltekit": "^1.1.0",
|
|
"workbox-window": "^7.3.0",
|
|
"@vitest/coverage-v8": "^4.1.2",
|
|
"@vitest/ui": "^4.1.2",
|
|
"autoprefixer": "^10.4.20",
|
|
"fake-indexeddb": "^6.2.5",
|
|
"postcss": "^8.4.49",
|
|
"postgres": "^3.4.9",
|
|
"prettier": "^3.4.2",
|
|
"prettier-plugin-svelte": "^3.3.2",
|
|
"prettier-plugin-tailwindcss": "^0.6.10",
|
|
"svelte": "^5.41.0",
|
|
"svelte-check": "^4.3.3",
|
|
"tailwindcss": "^4.1.17",
|
|
"tslib": "^2.8.1",
|
|
"typescript": "^5.9.3",
|
|
"vite": "^6.0.7",
|
|
"vitest": "^4.1.2"
|
|
},
|
|
"dependencies": {
|
|
"@calc/shared": "workspace:*",
|
|
"@huggingface/transformers": "^4.0.0",
|
|
"@mana/credits": "workspace:^",
|
|
"@mana/feedback": "workspace:*",
|
|
"@mana/help": "workspace:*",
|
|
"@mana/local-llm": "workspace:*",
|
|
"@mana/local-store": "workspace:*",
|
|
"@mana/local-stt": "workspace:^",
|
|
"@mana/qr-export": "workspace:*",
|
|
"@mana/shared-ai": "workspace:*",
|
|
"@mana/shared-auth": "workspace:*",
|
|
"@mana/shared-auth-ui": "workspace:*",
|
|
"@mana/shared-branding": "workspace:*",
|
|
"@mana/shared-error-tracking": "workspace:*",
|
|
"@mana/shared-i18n": "workspace:*",
|
|
"@mana/shared-icons": "workspace:*",
|
|
"@mana/shared-links": "workspace:*",
|
|
"@mana/shared-llm": "workspace:*",
|
|
"@mana/shared-stores": "workspace:*",
|
|
"@mana/shared-tags": "workspace:*",
|
|
"@mana/shared-tailwind": "workspace:*",
|
|
"@mana/shared-theme": "workspace:*",
|
|
"@mana/shared-theme-ui": "workspace:*",
|
|
"@mana/shared-types": "workspace:*",
|
|
"@mana/shared-ui": "workspace:*",
|
|
"@mana/shared-uload": "workspace:*",
|
|
"@mana/shared-utils": "workspace:*",
|
|
"@mana/spiral-db": "workspace:*",
|
|
"@mana/wallpaper-generator": "workspace:*",
|
|
"@types/pako": "^2.0.4",
|
|
"@types/suncalc": "^1.9.2",
|
|
"@quotes/content": "workspace:*",
|
|
"date-fns": "^4.1.0",
|
|
"dexie": "^4.0.11",
|
|
"marked": "^17.0.5",
|
|
"pako": "^2.1.0",
|
|
"rrule": "^2.8.1",
|
|
"suncalc": "^1.9.0",
|
|
"svelte-dnd-action": "^0.9.68",
|
|
"svelte-i18n": "^4.0.0",
|
|
"svelte-sonner": "^1.0.5",
|
|
"zod": "^3.25.76"
|
|
},
|
|
"type": "module"
|
|
}
|