Personal site and blog for Eric Poe, now built with Astro and Tailwind CSS.
npm install
npm run devOpen the local dev server URL printed by Astro to view the site.
npm run dev— start the dev servernpm run build— production buildnpm run preview— preview the production build locallynpm run check— Astro type/markup check (content collection validation and type diagnostics)npm run lint— ESLint for.astro,.ts, and.jsnpm run format— Prettier formattingnpm run test/npm run test:unit— Vitest unit tests (jsdom, Testing Library)npm run test:e2e— Playwright end-to-end tests (starts the dev server automatically)npm run test:e2e:ui— Playwright’s interactive test runner
- Unit/component tests use Vitest with jsdom and Testing Library. Run with
npm run testornpm run test:unit. - End-to-end tests use Playwright. Run with
npm run test:e2e(ornpm run test:e2e:uifor the UI runner). The command will start the dev server if needed. - Coverage (from Vitest) lands in
coverage/. Playwright artifacts (reports, traces) land underplaywright-report/andtest-results/and are git-ignored.
Blog posts live in src/content/blog. Images used inside posts live in src/content/blog/images. Static assets that should pass through unchanged live in public.