Files
audacity.github.io/package.json
Teetow 7ac0c48493 test: add lean critical-path E2E suite (Playwright)
Cover the three flows that must never silently break:

- front page: hero + real Windows installer link, release video, nav.
- downloads: /download OS targets, and real Windows/macOS installer links on
  the per-OS pages.
- promo banner: fake the browser clock to prove the date-window logic holds —
  an active campaign banner renders inside its window and disappears the day
  after it ends. Data-driven from campaigns.ts so it survives future pulls.

Setup: playwright.config.ts runs against `bun run dev`; `bun test` is scoped to
src/scripts so it ignores the .spec.ts files; e2e artifacts gitignored (and the
stale tracked test-results/ untracked).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 18:56:39 +02:00

55 lines
1.5 KiB
JSON

{
"name": "astro-audacity",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"pull-campaigns": "bun run scripts/pull-campaigns.ts",
"test": "bun test src scripts",
"test:e2e": "playwright test",
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"format": "prettier . --write",
"format:check": "prettier . --check",
"prepare": "husky"
},
"dependencies": {
"@astrojs/react": "^4.4.2",
"@astrojs/sitemap": "^3.7.0",
"@astrojs/tailwind": "^6.0.2",
"@fontsource-variable/signika": "^5.2.8",
"@fontsource/twinkle-star": "^5.2.8",
"@types/react": "^18.3.28",
"@types/react-dom": "^18.3.7",
"astro": "^5.17.2",
"astro-compressor": "^1.2.0",
"astro-icon": "^1.1.5",
"astro-lazy-youtube-embed": "^0.5.5",
"astro-microsoft-clarity-integration": "^1.1.7",
"classnames": "^2.5.1",
"platform": "^1.3.6",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"tailwindcss": "^3.4.19"
},
"devDependencies": {
"@astrojs/check": "^0.9.6",
"@iconify-json/fa6-brands": "^1.2.6",
"@playwright/test": "^1.60.0",
"@tailwindcss/typography": "^0.5.19",
"@types/bun": "^1.3.9",
"@types/platform": "^1.3.6",
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"postcss-nesting": "13",
"prettier": "^3.8.1",
"prettier-plugin-astro": "^0.14.1",
"typescript": "^5.9.3"
},
"lint-staged": {
"*.{astro,cjs,css,js,json,jsx,md,mjs,ts,tsx,yaml,yml}": "prettier --write"
}
}