mirror of
https://github.com/IliesAllali/parenthese.git
synced 2026-11-11 16:12:14 +00:00
Tests Immich : liste d'instances vide explicite, indépendante du .env local
Le test « aucune instance autorisée » héritait de IMMICH_ALLOWED_API_URLS du backend/.env de développement et échouait sur une machine qui le renseigne. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
63b9761ec4
commit
fbcac3afd4
1 file changed
+2
@@ -42,6 +42,8 @@ beforeAll(async () => {
|
||||
process.env.IMMICH_ENABLED = 'true'
|
||||
process.env.IMMICH_API_URL = 'http://immich.example.org'
|
||||
process.env.IMMICH_API_KEY = 'global-key'
|
||||
// Aucune instance autorisée : explicite, pour ne pas hériter de la liste d'un .env local.
|
||||
process.env.IMMICH_ALLOWED_API_URLS = ''
|
||||
|
||||
process.env.NODE_ENV = 'test'
|
||||
process.env.PORT = '4000'
|
||||
|
||||
Reference in new issue
Block a user