Skip to content

Commit

Permalink
update readme with snapshot hacks with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
codyzu committed Feb 11, 2024
1 parent 44ed8aa commit 4f25052
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,24 @@ pnpm run emulators
pnpm run test:start [args for vitest]
```

#### E2E Tests

```
pnpm run test:e2e
```

Snapshots are platform dependent. To update the snapshots with docker (required when developing with mac):

```sh
docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.39.0-jammy /bin/bash
# host is now at 192.168.5.2 or host.docker.internal
npm install -g pnpm
# remove @vite-pwa/assets-generator from package.json
# or apt install default-jre libvips libvips-dev build-essential
pnpm install
pnpm run test:e2e:snapshots
```

### Build

Create a production build:
Expand Down

0 comments on commit 4f25052

Please sign in to comment.