[READ-ONLY] Mirror of https://github.com/jhroemer/jhroemer.github.io. My personal website jensroemer.com
1.0 kB
Markdown
at main

jensroemer.com #

This repository contains all the code for my personal website, hosted at www.jensroemer.com.

Run the project #

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/.

Visual regression testing #

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.

VSCode setup (optional) #

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.