Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
- build: `pnpm run build` (astro check + build)
- format: `pnpm run format`
- typecheck: `pnpm exec astro check`
- visual tests: `pnpm run test`
- visual tests UI: `pnpm run test:ui`
- update snapshots: `pnpm run test:update`

## Stack + tools
- package mgr: pnpm
Expand Down Expand Up @@ -41,11 +38,6 @@

## Tests + CI
- CI jobs: lint-and-format, type-check, build
- visual snapshots: `tests/visual.spec.ts-snapshots/` (`*-chromium-darwin.png`)
- snapshot update flow:
1) `pnpm run build`
2) `pnpm run test:update`
3) commit snapshots

## Git
- commits: Conventional Commits, small + intentional
Expand Down
31 changes: 0 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,35 +34,4 @@ All commands are run from the root of the project, from a terminal:
| `pnpm run build` | Build your production site to `./dist/` |
| `pnpm run format` | Format code with Prettier |
| `pnpm run format:check` | Check code formatting without modifying files |
| `pnpm run test` | Run visual regression tests with Playwright |
| `pnpm run test:ui` | Run tests in interactive UI mode |
| `pnpm run test:update` | Update visual regression snapshots |
| `pnpm run astro check` | Type-check Astro files |

## 🧪 Visual Regression Testing

This project uses Playwright for visual regression testing to ensure UI consistency. Tests are run manually before deploys.

### Running Tests

```sh
# Build site first (tests run against built output)
pnpm run build

# Run visual regression tests
pnpm run test

# Run tests in interactive UI mode
pnpm run test:ui

# Update snapshots after intentional UI changes
pnpm run test:update
```

### Updating Snapshots

After making intentional UI changes:

1. Run `pnpm run build`
2. Run `pnpm run test:update`
3. Commit the updated snapshots in `tests/visual.spec.ts-snapshots/`
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"astro": "astro",
"format": "prettier --write ./src --plugin=prettier-plugin-astro --plugin=prettier-plugin-tailwindcss",
"format:check": "prettier --check ./src --plugin=prettier-plugin-astro --plugin=prettier-plugin-tailwindcss",
"test": "playwright test",
"test:ui": "playwright test --ui",
"test:update": "playwright test --update-snapshots",
"resume:compile": "typst compile ./resume/resume.typ ./public/resume.pdf",
"resume:watch": "typst watch ./resume/resume.typ ./public/resume.pdf"
},
Expand All @@ -31,7 +28,6 @@
},
"devDependencies": {
"@myriaddreamin/typst-ts-node-compiler": "0.7.0-rc2",
"@playwright/test": "^1.57.0",
"@tailwindcss/typography": "^0.5.19",
"@tailwindcss/vite": "^4.1.18",
"prettier": "^3.8.1",
Expand Down
34 changes: 0 additions & 34 deletions playwright.config.ts

This file was deleted.

Loading