1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-23 02:06:15 +02:00

chore(server): type checks for e2e (#7800)

type checks for e2e
This commit is contained in:
Daniel Dietzler 2024-03-10 00:18:25 +01:00 committed by GitHub
parent 11e7533a4d
commit 60c521101a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 3 deletions

View File

@ -196,6 +196,10 @@ jobs:
run: npm run format run: npm run format
if: ${{ !cancelled() }} if: ${{ !cancelled() }}
- name: Run tsc
run: npm run check
if: ${{ !cancelled() }}
- name: Install Playwright Browsers - name: Install Playwright Browsers
run: npx playwright install --with-deps chromium run: npx playwright install --with-deps chromium
if: ${{ !cancelled() }} if: ${{ !cancelled() }}

View File

@ -12,7 +12,8 @@
"format": "prettier --check .", "format": "prettier --check .",
"format:fix": "prettier --write .", "format:fix": "prettier --write .",
"lint": "eslint \"src/**/*.ts\" --max-warnings 0", "lint": "eslint \"src/**/*.ts\" --max-warnings 0",
"lint:fix": "npm run lint -- --fix" "lint:fix": "npm run lint -- --fix",
"check": "tsc --noEmit"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",

View File

@ -92,7 +92,7 @@ describe('/album', () => {
}), }),
]); ]);
await deleteUser({ id: user3.userId }, { headers: asBearerAuth(admin.accessToken) }); await deleteUser({ id: user3.userId, deleteUserDto: {} }, { headers: asBearerAuth(admin.accessToken) });
}); });
describe('GET /album', () => { describe('GET /album', () => {

View File

@ -86,7 +86,7 @@ describe('/shared-link', () => {
}), }),
]); ]);
await deleteUser({ id: user2.userId }, { headers: asBearerAuth(admin.accessToken) }); await deleteUser({ id: user2.userId, deleteUserDto: {} }, { headers: asBearerAuth(admin.accessToken) });
}); });
describe('GET /shared-link', () => { describe('GET /shared-link', () => {