mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-01 07:21:17 +00:00
- Add LoveButton.test.jsx with 9 cases (render, disabled states, click, propagation, tooltip) - Add ContextMenus.test.jsx with 8 cases for AlbumContextMenu and ArtistContextMenu - Extend useToggleLove.test.js with error handling and loading state cases - Add useToggleLove.test.md documenting test cases and mocks - Add frontend-test service to docker-compose.dev.yml (profile: test) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
services:
|
|
backend:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.dev
|
|
ports:
|
|
- "4633:4633"
|
|
volumes:
|
|
- .:/workspace
|
|
- ./music:/music:ro
|
|
- ./data:/data
|
|
- go-mod-cache:/go/pkg/mod
|
|
- go-build-cache:/root/.cache/go-build
|
|
environment:
|
|
ND_PORT: "4633"
|
|
ND_MUSICFOLDER: /music
|
|
ND_DATAFOLDER: /data
|
|
ND_LOGLEVEL: info
|
|
ND_ENABLEINSIGHTSCOLLECTOR: "false"
|
|
ND_DEVAUTOCREATEADMINPASSWORD: "admin"
|
|
command: sh -c "mkdir -p ui/build/3rdparty && touch ui/build/3rdparty/placeholder && go mod download && go tool reflex -d none -c reflex.conf"
|
|
|
|
frontend:
|
|
image: node:24
|
|
working_dir: /app
|
|
ports:
|
|
- "4533:4533"
|
|
volumes:
|
|
- ./ui:/app
|
|
- node-modules:/app/node_modules
|
|
environment:
|
|
PORT: "4533"
|
|
BACKEND_HOST: backend
|
|
command: sh -c "npm ci && npm start"
|
|
depends_on:
|
|
- backend
|
|
|
|
frontend-test:
|
|
image: node:24
|
|
working_dir: /app
|
|
volumes:
|
|
- ./ui:/app
|
|
- node-modules:/app/node_modules
|
|
command: sh -c "npm ci && npm test"
|
|
profiles:
|
|
- test
|
|
|
|
volumes:
|
|
go-mod-cache:
|
|
go-build-cache:
|
|
node-modules:
|