feat(server): support running medium tests in devcontainer (#23882)

* Support running medium tests in devcontainer

* Add "pnpm run test:medium" to the devcontainer doc

* Fix indentation for inline comments in the doc

* Fix a couple of words in the doc
This commit is contained in:
Sergey Katsubo 2025-11-19 06:03:21 +03:00 committed by GitHub
parent 76c73549ae
commit 5e482dabc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 25 additions and 18 deletions

View File

@ -29,6 +29,12 @@
] ]
} }
}, },
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {
// https://github.com/devcontainers/features/issues/1466
"moby": false
}
},
"forwardPorts": [3000, 9231, 9230, 2283], "forwardPorts": [3000, 9231, 9230, 2283],
"portsAttributes": { "portsAttributes": {
"3000": { "3000": {

View File

@ -268,12 +268,13 @@ make test-all # Runs tests for all components
make test-medium-dev # End-to-end tests make test-medium-dev # End-to-end tests
``` ```
#### Using NPM Directly #### Using PNPM Directly
```bash ```bash
# Server tests # Server tests
cd /workspaces/immich/server cd /workspaces/immich/server
pnpm test # Run all tests pnpm test # Run all tests
pnpm run test:medium # Medium tests (integration tests)
pnpm run test:watch # Watch mode pnpm run test:watch # Watch mode
pnpm run test:cov # Coverage report pnpm run test:cov # Coverage report
@ -307,7 +308,7 @@ make check-web # Type check web
make check-all # Check all components make check-all # Check all components
# Complete hygiene check # Complete hygiene check
make hygiene-all # Runs lint, format, check, SQL sync, and audit make hygiene-all # Run lint, format, check, SQL sync, and audit
``` ```
### Additional Make Commands ### Additional Make Commands