This repository contains all the code for my personal website, hosted at www.jensroemer.com.
Make sure to install dependencies with pnpm install. Then run the dev server by running pnpm run start, the page will be available at http://localhost:4321/.
You need to have Docker installed. You can then run the visual regression tests locally by running:
pnpm run test
If you have made changes and need to update the snapshots:
pnpm run test:update
For tests that depend on fetching data, mock the specific endpoints with:
pnpm run generate-mock
Which will run ts-generate-mock-data - follow the prompts and the mock data will be saved to a TS file in /tests/mocks.
Install the recommended extensions in .vscode/extensions.json. You can do this automatically by opening the Extensions tab in VS Code and follow the prompts.