Skip to content

High performance self-hosted photo and video management solution.

chore(deps): update vitest monorepo to v5 (#31912)

renovate[bot]8b3d426f14a9
diff --git a/e2e/package.json b/e2e/package.json
index 3f66c50686..0357044773 100644
--- a/e2e/package.json
+++ b/e2e/package.json
@@ -55,6 +55,6 @@
"typescript": "npm:@typescript/typescript6@^6.0.2",
"typescript-eslint": "^8.28.0",
"utimes": "^5.2.1",
- "vitest": "^4.0.0"
+ "vitest": "^5.0.0"
}
}
diff --git a/e2e/src/specs/maintenance/server/database-backups.e2e-spec.ts b/e2e/src/specs/maintenance/server/database-backups.e2e-spec.ts
index f0e7a05a20..0946338727 100644
--- a/e2e/src/specs/maintenance/server/database-backups.e2e-spec.ts
+++ b/e2e/src/specs/maintenance/server/database-backups.e2e-spec.ts
@@ -91,7 +91,7 @@ describe('/admin/database-backups', () => {
// => action: restore database flow
- describe.sequential('POST /start-restore', () => {
+ describe('POST /start-restore', { concurrent: false }, () => {
afterAll(async () => {
await request(app).post('/admin/maintenance').set('cookie', cookie!).send({ action: 'end' });
await utils.poll(
@@ -104,14 +104,14 @@ describe('/admin/database-backups', () => {
});
});
- it.sequential('should not work when the server is configured', async () => {
+ it('should not work when the server is configured', { concurrent: false }, async () => {
const { status, body } = await request(app).post('/admin/database-backups/start-restore').send();
expect(status).toBe(400);
expect(body).toEqual(errorDto.badRequest('Admin setup is not available'));
});
- it.sequential('should enter maintenance mode in "database restore mode"', async () => {
+ it('should enter maintenance mode in "database restore mode"', { concurrent: false }, async () => {
await utils.resetDatabase(); // reset database before running this test
const { status, headers } = await request(app).post('/admin/database-backups/start-restore').send();
@@ -145,7 +145,7 @@ describe('/admin/database-backups', () => {
// => action: restore database
- describe.sequential('POST /backups/restore', () => {
+ describe('POST /backups/restore', { concurrent: false }, () => {
beforeAll(async () => {
await utils.disconnectDatabase();
});
@@ -154,7 +154,7 @@ describe('/admin/database-backups', () => {
await utils.connectDatabase();
});
- it.sequential('should restore a backup', { timeout: 60_000 }, async () => {
+ it('should restore a backup', { timeout: 60_000, concurrent: false }, async () => {
let filename = await utils.createBackup(admin.accessToken);
// work-around until test is running on released version
@@ -212,7 +212,7 @@ describe('/admin/database-backups', () => {
.toBeFalsy();
});
- it.sequential('fail to restore a corrupted backup', { timeout: 60_000 }, async () => {
+ it('fail to restore a corrupted backup', { timeout: 60_000, concurrent: false }, async () => {
await utils.prepareTestBackup('corrupted');
const { status, headers } = await request(app)
@@ -283,7 +283,7 @@ describe('/admin/database-backups', () => {
);
});
- it.sequential('rollback to restore point if backup is missing admin', { timeout: 60_000 }, async () => {
+ it('rollback to restore point if backup is missing admin', { timeout: 60_000, concurrent: false }, async () => {
await utils.prepareTestBackup('empty');
const { status, headers } = await request(app)
diff --git a/e2e/src/specs/maintenance/server/maintenance.e2e-spec.ts b/e2e/src/specs/maintenance/server/maintenance.e2e-spec.ts
index 35c95194b1..9fe6f27c9b 100644
--- a/e2e/src/specs/maintenance/server/maintenance.e2e-spec.ts
+++ b/e2e/src/specs/maintenance/server/maintenance.e2e-spec.ts
@@ -45,7 +45,7 @@ describe('/admin/maintenance', () => {
// => enter maintenance mode
- describe.sequential('POST /', () => {
+ describe('POST /', { concurrent: false }, () => {
it('should be a no-op if try to exit maintenance mode', async () => {
const { status } = await request(app)
.post('/admin/maintenance')
@@ -87,7 +87,7 @@ describe('/admin/maintenance', () => {
// => in maintenance mode
- describe.sequential('in maintenance mode', () => {
+ describe('in maintenance mode', { concurrent: false }, () => {
describe('GET ~/server/config', async () => {
it('should indicate we are in maintenance mode', async () => {
const { status, body } = await request(app).get('/server/config');
@@ -152,7 +152,7 @@ describe('/admin/maintenance', () => {
// => exit maintenance mode
- describe.sequential('POST /', () => {
+ describe('POST /', { concurrent: false }, () => {
it('should exit maintenance mode', async () => {
const { status } = await request(app).post('/admin/maintenance').set('cookie', cookie!).send({
action: 'end',
diff --git a/e2e/src/specs/server/api/integrity.e2e-spec.ts b/e2e/src/specs/server/api/integrity.e2e-spec.ts
index 04fd46f929..bf22708de9 100644
--- a/e2e/src/specs/server/api/integrity.e2e-spec.ts
+++ b/e2e/src/specs/server/api/integrity.e2e-spec.ts
@@ -96,7 +96,7 @@ describe('/admin/integrity', () => {
});
describe('POST /summary (& jobs)', async () => {
- it.sequential('reports no issues', async () => {
+ it('reports no issues', { concurrent: false }, async () => {
await utils.createJob(admin.accessToken, {
name: ManualJobName.IntegrityUntrackedFiles,
});
@@ -130,7 +130,7 @@ describe('/admin/integrity', () => {
});
});
- it.sequential('should detect an untracked file (job: check untracked files)', async () => {
+ it('should detect an untracked file (job: check untracked files)', { concurrent: false }, async () => {
await utils.putTextFile('untracked', `/data/upload/${admin.userId}/untracked1.png`);
await utils.createJob(admin.accessToken, {
@@ -152,31 +152,35 @@ describe('/admin/integrity', () => {
);
});
- it.sequential('should detect outdated untracked file reports (job: refresh untracked files)', async () => {
- // these should not be detected:
- await utils.putTextFile('untracked', `/data/upload/${admin.userId}/untracked2.png`);
- await utils.putTextFile('untracked', `/data/upload/${admin.userId}/untracked3.png`);
+ it(
+ 'should detect outdated untracked file reports (job: refresh untracked files)',
+ { concurrent: false },
+ async () => {
+ // these should not be detected:
+ await utils.putTextFile('untracked', `/data/upload/${admin.userId}/untracked2.png`);
+ await utils.putTextFile('untracked', `/data/upload/${admin.userId}/untracked3.png`);
- await utils.createJob(admin.accessToken, {
- name: ManualJobName.IntegrityUntrackedFilesRefresh,
- });
+ await utils.createJob(admin.accessToken, {
+ name: ManualJobName.IntegrityUntrackedFilesRefresh,
+ });
- await utils.waitForQueueFinish(admin.accessToken, QueueName.IntegrityCheck);
+ await utils.waitForQueueFinish(admin.accessToken, QueueName.IntegrityCheck);
- const { status, body } = await request(app)
- .get('/admin/integrity/summary')
- .set('Authorization', `Bearer ${admin.accessToken}`)
- .send();
+ const { status, body } = await request(app)
+ .get('/admin/integrity/summary')
+ .set('Authorization', `Bearer ${admin.accessToken}`)
+ .send();
- expect(status).toBe(200);
- expect(body).toEqual(
- expect.objectContaining({
- untracked_file: 0,
- }),
- );
- });
+ expect(status).toBe(200);
+ expect(body).toEqual(
+ expect.objectContaining({
+ untracked_file: 0,
+ }),
+ );
+ },
+ );
- it.sequential('should delete untracked files (job: delete all untracked file reports)', async () => {
+ it('should delete untracked files (job: delete all untracked file reports)', { concurrent: false }, async () => {
await utils.putTextFile('untracked', `/data/upload/${admin.userId}/untracked1.png`);
await utils.createJob(admin.accessToken, {
@@ -204,30 +208,34 @@ describe('/admin/integrity', () => {
);
});
- it.sequential('should detect a missing file and not a checksum mismatch (job: check missing files)', async () => {
- await utils.deleteFolder(`/data/upload/${admin.userId}`);
+ it(
+ 'should detect a missing file and not a checksum mismatch (job: check missing files)',
+ { concurrent: false },
+ async () => {
+ await utils.deleteFolder(`/data/upload/${admin.userId}`);
- await utils.createJob(admin.accessToken, {
- name: ManualJobName.IntegrityMissingFiles,
- });
+ await utils.createJob(admin.accessToken, {
+ name: ManualJobName.IntegrityMissingFiles,
+ });
- await utils.waitForQueueFinish(admin.accessToken, QueueName.IntegrityCheck);
+ await utils.waitForQueueFinish(admin.accessToken, QueueName.IntegrityCheck);
- const { status, body } = await request(app)
- .get('/admin/integrity/summary')
- .set('Authorization', `Bearer ${admin.accessToken}`)
- .send();
+ const { status, body } = await request(app)
+ .get('/admin/integrity/summary')
+ .set('Authorization', `Bearer ${admin.accessToken}`)
+ .send();
- expect(status).toBe(200);
- expect(body).toEqual(
- expect.objectContaining({
- missing_file: 1,
- checksum_mismatch: 0,
- }),
- );
- });
+ expect(status).toBe(200);
+ expect(body).toEqual(
+ expect.objectContaining({
+ missing_file: 1,
+ checksum_mismatch: 0,
+ }),
+ );
+ },
+ );
- it.sequential('should detect outdated missing file reports (job: refresh missing files)', async () => {
+ it('should detect outdated missing file reports (job: refresh missing files)', { concurrent: false }, async () => {
await utils.createJob(admin.accessToken, {
name: ManualJobName.IntegrityMissingFilesRefresh,
});
@@ -248,53 +256,57 @@ describe('/admin/integrity', () => {
);
});
- it.sequential('should delete assets with missing files (job: delete all missing file reports)', async () => {
- await utils.deleteFolder(`/data/upload/${user1.userId}`);
+ it(
+ 'should delete assets with missing files (job: delete all missing file reports)',
+ { concurrent: false },
+ async () => {
+ await utils.deleteFolder(`/data/upload/${user1.userId}`);
- await utils.createJob(admin.accessToken, {
- name: ManualJobName.IntegrityMissingFiles,
- });
+ await utils.createJob(admin.accessToken, {
+ name: ManualJobName.IntegrityMissingFiles,
+ });
- await utils.waitForQueueFinish(admin.accessToken, QueueName.IntegrityCheck);
+ await utils.waitForQueueFinish(admin.accessToken, QueueName.IntegrityCheck);
- const { status: listStatus, body: listBody } = await request(app)
- .get('/admin/integrity/summary')
- .set('Authorization', `Bearer ${admin.accessToken}`)
- .send();
+ const { status: listStatus, body: listBody } = await request(app)
+ .get('/admin/integrity/summary')
+ .set('Authorization', `Bearer ${admin.accessToken}`)
+ .send();
- expect(listStatus).toBe(200);
- expect(listBody).toEqual(
- expect.objectContaining({
- missing_file: 1,
- }),
- );
+ expect(listStatus).toBe(200);
+ expect(listBody).toEqual(
+ expect.objectContaining({
+ missing_file: 1,
+ }),
+ );
- await utils.createJob(admin.accessToken, {
- name: ManualJobName.IntegrityMissingFilesDeleteAll,
- });
+ await utils.createJob(admin.accessToken, {
+ name: ManualJobName.IntegrityMissingFilesDeleteAll,
+ });
- await utils.waitForQueueFinish(admin.accessToken, QueueName.IntegrityCheck);
+ await utils.waitForQueueFinish(admin.accessToken, QueueName.IntegrityCheck);
- const { status, body } = await request(app)
- .get('/admin/integrity/summary')
- .set('Authorization', `Bearer ${admin.accessToken}`)
- .send();
+ const { status, body } = await request(app)
+ .get('/admin/integrity/summary')
+ .set('Authorization', `Bearer ${admin.accessToken}`)
+ .send();
- expect(status).toBe(200);
- expect(body).toEqual(
- expect.objectContaining({
- missing_file: 0,
- }),
- );
+ expect(status).toBe(200);
+ expect(body).toEqual(
+ expect.objectContaining({
+ missing_file: 0,
+ }),
+ );
- await expect(utils.getAssetInfo(user1.accessToken, asset1.id)).resolves.toEqual(
- expect.objectContaining({
- isTrashed: true,
- }),
- );
- });
+ await expect(utils.getAssetInfo(user1.accessToken, asset1.id)).resolves.toEqual(
+ expect.objectContaining({
+ isTrashed: true,
+ }),
+ );
+ },
+ );
- it.sequential('should detect a checksum mismatch (job: check file checksums)', async () => {
+ it('should detect a checksum mismatch (job: check file checksums)', { concurrent: false }, async () => {
await utils.truncateFolder(`/data/upload/${admin.userId}`);
await utils.createJob(admin.accessToken, {
@@ -316,28 +328,33 @@ describe('/admin/integrity', () => {
);
});
- it.sequential('should detect outdated checksum mismatch reports (job: refresh file checksums)', async () => {
- await utils.createJob(admin.accessToken, {
- name: ManualJobName.IntegrityChecksumMismatchRefresh,
- });
+ it(
+ 'should detect outdated checksum mismatch reports (job: refresh file checksums)',
+ { concurrent: false },
+ async () => {
+ await utils.createJob(admin.accessToken, {
+ name: ManualJobName.IntegrityChecksumMismatchRefresh,
+ });
- await utils.waitForQueueFinish(admin.accessToken, QueueName.IntegrityCheck);
+ await utils.waitForQueueFinish(admin.accessToken, QueueName.IntegrityCheck);
- const { status, body } = await request(app)
- .get('/admin/integrity/summary')
- .set('Authorization', `Bearer ${admin.accessToken}`)
- .send();
+ const { status, body } = await request(app)
+ .get('/admin/integrity/summary')
+ .set('Authorization', `Bearer ${admin.accessToken}`)
+ .send();
- expect(status).toBe(200);
- expect(body).toEqual(
- expect.objectContaining({
- checksum_mismatch: 0,
- }),
- );
- });
+ expect(status).toBe(200);
+ expect(body).toEqual(
+ expect.objectContaining({
+ checksum_mismatch: 0,
+ }),
+ );
+ },
+ );
- it.sequential(
+ it(
'should delete assets with mismatched checksum (job: delete all checksum mismatch reports)',
+ { concurrent: false },
async () => {
await utils.truncateFolder(`/data/upload/${user2.userId}`);
@@ -387,7 +404,7 @@ describe('/admin/integrity', () => {
});
describe('POST /report', async () => {
- it.sequential('reports untracked files', async () => {
+ it('reports untracked files', { concurrent: false }, async () => {
await utils.putTextFile('untracked', `/data/upload/${admin.userId}/untracked1.png`);
await utils.createJob(admin.accessToken, {
@@ -417,7 +434,7 @@ describe('/admin/integrity', () => {
});
});
- it.sequential('reports missing files', async () => {
+ it('reports missing files', { concurrent: false }, async () => {
await utils.deleteFolder(`/data/upload/${admin.userId}`);
await utils.createJob(admin.accessToken, {
@@ -447,7 +464,7 @@ describe('/admin/integrity', () => {
});
});
- it.sequential('reports checksum mismatched files', async () => {
+ it('reports checksum mismatched files', { concurrent: false }, async () => {
await utils.truncateFolder(`/data/upload/${admin.userId}`);
await utils.createJob(admin.accessToken, {
@@ -479,7 +496,7 @@ describe('/admin/integrity', () => {
});
describe('DELETE /report/:id', async () => {
- it.sequential('delete untracked files', async () => {
+ it('delete untracked files', { concurrent: false }, async () => {
await utils.putTextFile('untracked', `/data/upload/${admin.userId}/untracked1.png`);
await utils.createJob(admin.accessToken, {
@@ -529,7 +546,7 @@ describe('/admin/integrity', () => {
);
});
- it.sequential('delete assets missing files', async () => {
+ it('delete assets missing files', { concurrent: false }, async () => {
await utils.deleteFolder(`/data/upload/${admin.userId}`);
await utils.createJob(admin.accessToken, {
@@ -570,7 +587,7 @@ describe('/admin/integrity', () => {
expect(listBody2.items.length).toBe(0);
});
- it.sequential('delete assets with failing checksum', async () => {
+ it('delete assets with failing checksum', { concurrent: false }, async () => {
await utils.truncateFolder(`/data/upload/${admin.userId}`);
await utils.createJob(admin.accessToken, {
@@ -613,7 +630,7 @@ describe('/admin/integrity', () => {
});
describe('GET /report/:type/csv', () => {
- it.sequential('exports untracked files as csv', async () => {
+ it('exports untracked files as csv', { concurrent: false }, async () => {
await utils.putTextFile('untracked', `/data/upload/${admin.userId}/untracked1.png`);
await utils.createJob(admin.accessToken, {
@@ -637,7 +654,7 @@ describe('/admin/integrity', () => {
});
describe('GET /report/:id/file', () => {
- it.sequential('downloads untracked file', async () => {
+ it('downloads untracked file', { concurrent: false }, async () => {
await utils.putTextFile('untracked-content', `/data/upload/${admin.userId}/untracked1.png`);
await utils.createJob(admin.accessToken, {
diff --git a/e2e/src/specs/web/auth.e2e-spec.ts b/e2e/src/specs/web/auth.e2e-spec.ts
index c19fe20237..633bad05fd 100644
--- a/e2e/src/specs/web/auth.e2e-spec.ts
+++ b/e2e/src/specs/web/auth.e2e-spec.ts
@@ -27,7 +27,7 @@ test.describe('Registration', () => {
await expect(page).toHaveTitle(/Login/);
await page.goto('/auth/login?autoLaunch=0');
await page.getByLabel('Email').fill('[email protected]');
- await page.getByLabel('Password').fill('password');
+ await page.getByLabel('Password', { exact: true }).fill('password');
await page.getByRole('button', { name: 'Login' }).click();
// onboarding
diff --git a/e2e/src/specs/web/shared-link.e2e-spec.ts b/e2e/src/specs/web/shared-link.e2e-spec.ts
index 3eed0ae515..acd7930390 100644
--- a/e2e/src/specs/web/shared-link.e2e-spec.ts
+++ b/e2e/src/specs/web/shared-link.e2e-spec.ts
@@ -80,7 +80,7 @@ test.describe('Shared Links', () => {
const input = page.getByPlaceholder('Password');
await input.fill('test-password');
await page.getByRole('button', { name: 'Show password' }).click();
- // await page.getByText('test-password', { exact: true }).waitFor();
+ // await page.getByText('test-password').waitFor();
await expect(input).toHaveAttribute('type', 'text');
});
diff --git a/e2e/src/ui/specs/timeline/timeline.e2e-spec.ts b/e2e/src/ui/specs/timeline/timeline.e2e-spec.ts
index 71524ab011..29b008b3c8 100644
--- a/e2e/src/ui/specs/timeline/timeline.e2e-spec.ts
+++ b/e2e/src/ui/specs/timeline/timeline.e2e-spec.ts
@@ -494,7 +494,7 @@ test.describe('Timeline', () => {
force: false,
ids: [assetToTrash.id],
});
- await page.getByText('Trash', { exact: true }).click();
+ await page.getByRole('link', { name: 'Trash' }).click();
await thumbnailUtils.expectInViewport(page, assetToTrash.id);
await thumbnailUtils.withAssetId(page, assetToTrash.id).hover();
await thumbnailUtils.selectButton(page, assetToTrash.id).click();
@@ -507,12 +507,12 @@ test.describe('Timeline', () => {
json: { count: requestJson.ids.length },
});
});
- await page.getByText('Restore', { exact: true }).click();
+ await page.getByText('Restore').click();
await expect(restoreRequest).resolves.toEqual({
ids: [assetToTrash.id],
});
await expect(thumbnailUtils.withAssetId(page, assetToTrash.id)).toHaveCount(0);
- await page.getByText('Photos', { exact: true }).click();
+ await page.getByRole('link', { name: 'Photos' }).click();
await thumbnailUtils.expectInViewport(page, assetToTrash.id);
});
test('open album, trash photo, open /trash, restore', async ({ page }) => {
@@ -537,7 +537,7 @@ test.describe('Timeline', () => {
ids: [assetToTrash.id],
});
await page.locator('#control-bar').getByLabel('Close').click();
- await page.getByText('Trash', { exact: true }).click();
+ await page.getByRole('link', { name: 'Trash' }).click();
await timelineUtils.waitForTimelineLoad(page);
await thumbnailUtils.expectInViewport(page, assetToTrash.id);
await thumbnailUtils.withAssetId(page, assetToTrash.id).hover();
@@ -551,7 +551,7 @@ test.describe('Timeline', () => {
json: { count: requestJson.ids.length },
});
});
- await page.getByText('Restore', { exact: true }).click();
+ await page.getByText('Restore').click();
await expect(restoreRequest).resolves.toEqual({
ids: [assetToTrash.id],
});
@@ -603,7 +603,7 @@ test.describe('Timeline', () => {
ids: [assetToArchive.id],
});
await expect(thumbnailUtils.withAssetId(page, assetToArchive.id)).toHaveCount(0);
- await page.getByText('Photos', { exact: true }).click();
+ await page.getByRole('link', { name: 'Photos' }).click();
await thumbnailUtils.expectInViewport(page, assetToArchive.id);
});
test('open /archive, favorite photo, unfavorite', async ({ page }) => {
@@ -749,7 +749,7 @@ test.describe('Timeline', () => {
ids: [assetToFavorite.id],
});
await expect(thumbnailUtils.withAssetId(page, assetToFavorite.id)).toHaveCount(0);
- await page.getByText('Photos', { exact: true }).click();
+ await page.getByRole('link', { name: 'Photos' }).click();
await thumbnailUtils.expectInViewport(page, assetToFavorite.id);
});
test.skip('open /favorites, archive photo, unarchive photo', async ({ page }) => {
diff --git a/packages/cli/package.json b/packages/cli/package.json
index 260ba99380..3c37771131 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -26,7 +26,7 @@
"@types/micromatch": "^4.0.9",
"@types/mock-fs": "^4.13.1",
"@types/node": "^24.19.2",
- "@vitest/coverage-v8": "^4.0.0",
+ "@vitest/coverage-v8": "^5.0.0",
"byte-size": "^9.0.0",
"cli-progress": "^3.12.0",
"commander": "^15.0.0",
@@ -42,7 +42,7 @@
"typescript": "npm:@typescript/typescript6@^6.0.2",
"typescript-eslint": "^8.58.0",
"vite": "^8.0.0",
- "vitest": "^4.0.0",
+ "vitest": "^5.0.0",
"vitest-fetch-mock": "^0.4.0",
"yaml": "^2.3.1"
},
diff --git a/packages/scripts/package.json b/packages/scripts/package.json
index d7330bf9ff..7cddeb12b3 100644
--- a/packages/scripts/package.json
+++ b/packages/scripts/package.json
@@ -31,7 +31,7 @@
"@types/node": "^24.19.2",
"@types/semver": "^7.7.1",
"vite": "^8.0.16",
- "vitest": "^4.1.8"
+ "vitest": "^5.0.0"
},
"packageManager": "[email protected]"
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 0ca346c2a5..03a698a5fc 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -200,8 +200,8 @@ importers:
specifier: ^5.2.1
version: 5.2.1([email protected])
vitest:
- specifier: ^4.0.0
+ specifier: ^5.0.0
packages/cli:
dependencies:
@@ -252,8 +252,8 @@ importers:
specifier: npm:typescript@^7.0.2
'@vitest/coverage-v8':
- specifier: ^4.0.0
- version: 4.1.11([email protected])
+ specifier: ^5.0.0
+ version: 5.0.4([email protected])
byte-size:
specifier: ^9.0.0
version: 9.0.1
@@ -297,11 +297,11 @@ importers:
specifier: ^8.0.0
vitest:
- specifier: ^4.0.0
+ specifier: ^5.0.0
vitest-fetch-mock:
specifier: ^0.4.0
- version: 0.4.5([email protected])
+ version: 0.4.5([email protected])
yaml:
specifier: ^2.3.1
version: 2.9.1
@@ -386,8 +386,8 @@ importers:
specifier: ^8.0.16
vitest:
- specifier: ^4.1.8
+ specifier: ^5.0.0
packages/sdk:
dependencies:
@@ -727,8 +727,8 @@ importers:
specifier: npm:typescript@^7.0.2
'@vitest/coverage-v8':
- specifier: ^4.0.0
- version: 4.1.11([email protected])
+ specifier: ^5.0.0
+ version: 5.0.4([email protected])
eslint:
specifier: ^10.0.0
@@ -781,8 +781,8 @@ importers:
specifier: ^1.4.5
vitest:
- specifier: ^4.0.0
+ specifier: ^5.0.0
web:
dependencies:
@@ -957,10 +957,10 @@ importers:
'@testing-library/jest-dom':
specifier: ^7.0.0
- version: 7.0.1(@testing-library/[email protected])([email protected])
+ version: 7.0.1(@testing-library/[email protected])([email protected])
'@testing-library/svelte':
specifier: ^5.2.8
'@testing-library/user-event':
specifier: ^14.5.2
version: 14.6.7(@testing-library/[email protected])
@@ -989,8 +989,8 @@ importers:
specifier: npm:typescript@^7.0.2
'@vitest/coverage-v8':
- specifier: ^4.0.0
- version: 4.1.11([email protected])
+ specifier: ^5.0.0
+ version: 5.0.4([email protected])
dotenv:
specifier: ^18.0.0
version: 18.0.6
@@ -1055,8 +1055,8 @@ importers:
specifier: ^8.0.0
vitest:
- specifier: ^4.0.0
+ specifier: ^5.0.0
packages:
@@ -5603,22 +5603,27 @@ packages:
peerDependencies:
valibot: ^1.4.0
- '@vitest/[email protected]':
- resolution: {integrity: sha512-8MVGEFnJIcdGjcbfKmeq8z0pZHH0JlVtoVZH9Q/qwUp6wyFnEJUBMrw9DCaj+ra3vShGmhavjalMIhPNxZAUcw==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-P5YcQY8Y6RmoE9xRXI38rT8pssbcubEzqtYTM2XQoxOXMDn04nRaTI1SM8qCl9/NfW3ag9GlzdSXu7IwO5Ft8A==}
peerDependencies:
- '@vitest/browser': 4.1.11
- vitest: 4.1.11
+ '@vitest/browser': 5.0.4
+ vitest: 5.0.4
peerDependenciesMeta:
'@vitest/browser':
optional: true
- '@vitest/[email protected]':
- resolution: {integrity: sha512-VX2x5vNJXET47KAFzwERI+KRMtTTCSWTfSMKsW7JsUsXV4psq++e3DvZpuTDOpHcxytiDs6p2nhVb2tVDiiUYw==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-9J/JMwOf9AoJhAywhrn7ScKTL38hsWQP/qPG60OtaAFcQ5OXPwKsxZFlbnuCKmZ61m8/lGgHYnFpdyQZUvG/iA==}
+ engines: {node: '>=22'}
+
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-gUsfXZJbzPamoIY5TvHFiMMoXESBrUMo+xqaj+rYrWI69+EnvRlYBlP96ZnHPY4vX8kyUpgAnFUCg5wZG/HkDQ==}
+ engines: {node: '>=22'}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-2XJVD55d1o5AZous5CCGKS74g/riOj9odEt2bQpCVZeblHyHdnMeFl4jl0XjU21stf4mbjUkew2eXQZt65g5CQ==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-tqAlrYWce4iUxhr3ncNohejtCTOcHeE8XWrSNZY3OhPoDn01yeGv+gnaBy64ATp7o6pb03eIbBAjzmibpc9vIQ==}
peerDependencies:
- msw: ^2.4.9
+ msw: ^2.4.9 || ^3.0.0
vite: ^6.0.0 || ^7.0.0 || ^8.0.0
peerDependenciesMeta:
msw:
@@ -5626,20 +5631,8 @@ packages:
vite:
optional: true
- '@vitest/[email protected]':
- resolution: {integrity: sha512-yiZzPbGTS9Sr/JpFl8zHrcIkAofNbFV6k21vIgQN/cY/oxZeXhJv5sc/MBJ5jFKWmWs+oJHw0UXLZjmf931+Vw==}
-
- '@vitest/[email protected]':
- resolution: {integrity: sha512-LztvUgdwMNJMIkj3hQnnxiC2Xy1zNxq928W/xhjCLaNCzqTZOudjwbQf6v9IntZGPw132i2Lq2rgTRZHD3JHNw==}
-
- '@vitest/[email protected]':
- resolution: {integrity: sha512-pN7ikn1ON7h8ee4gIAp4AzyK+zBtJPzVbqOgu5LCEh4VaJVbPQcgYQYJIMGQPXVeJJq1fnfazis7a5pFNPahog==}
-
- '@vitest/[email protected]':
- resolution: {integrity: sha512-apNa/prQy2qCeywhnixOHPRCgGNhvg7T4Dapfl1GahLp/R+uhBm5cPyFoNVyqsNd2h1nJxL6BqqdIjiABL60YA==}
-
- '@vitest/[email protected]':
- resolution: {integrity: sha512-zTCVGpyFsGWBhllOyKlTw/vnr6D9qxsfSDyfbyZmTyjHw5N/VuvzHpHoQjm2ZJzn4RJgx5w4r7V0er69CmLgPQ==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-MZKk/gSkm2q+ICobMxCpH1mA+cCAWm8WV7UhxlqGjq/sJ3AGc1BqFOs5CRVXxH78wQtme9q/NAAgBquj4AcyMw==}
'@webassemblyjs/[email protected]':
resolution: {integrity: sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ==}
@@ -8795,18 +8788,6 @@ packages:
resolution: {integrity: sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==}
engines: {node: '>=0.10.0'}
- resolution: {integrity: sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==}
- engines: {node: '>=8'}
-
- resolution: {integrity: sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==}
- engines: {node: '>=10'}
-
- resolution: {integrity: sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==}
- engines: {node: '>=8'}
-
resolution: {integrity: sha512-RKYVTCjAnRthyJes037NX/IiqeidgN1xc3j1RjFfECFp28A1GVwK9nA+i0rJPaHqSZwygLzRnFlzUuHFoWWy+Q==}
engines: {node: '>=6'}
@@ -9328,6 +9309,9 @@ packages:
resolution: {integrity: sha512-8lyCu36ErXR0J9uaGKlKQoiLZKmtI63YGLE8G2o9jyRPdr4X47LusSOwgOJOzcVtp81fTAAjxR7BwKz682Jhow==}
+ resolution: {integrity: sha512-z12OxmaPGE0F4xlpGdjuAUckipLpQlTAuAmyGhNoD7ODpYUzvDfvtxUbjM/jwznyP178oju/KDdyi220wNJ0RQ==}
+
resolution: {integrity: sha512-UicdXN8zQ3JHlxVq+28afMXPr1z7WNY6+7EJnzTdQWkTAlMLF5fNCCKxJHBQwGaNGR11581EiQmQzx73+MvszA==}
@@ -9335,10 +9319,6 @@ packages:
resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==}
engines: {node: '>=8'}
- resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==}
- engines: {node: '>=10'}
-
resolution: {integrity: sha512-ELXk4h+xl0URFQEnVbAN6MGn61P6jq4amUWHiskLVsvHCaKdf1Zq6G8UNOD0AQ3UaXoL5ECc8ovz8yqYEBGPKw==}
engines: {node: '>=16.14.0', npm: '>=8.1.0'}
@@ -10069,6 +10049,10 @@ packages:
resolution: {integrity: sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q==}
engines: {node: '>=12.20.0'}
+ resolution: {integrity: sha512-5vvB5+W7ePv+p3uqxi+RcW1XAzLW0/hxt3/4X4Lc4qHudzOhmBiBwOY6DRob4WnanAEGvNcLjF+KNOufrUoEQw==}
+ engines: {node: '>=12.20.0'}
+
resolution: {integrity: sha512-UaqeVpeijTocxVbDowPqPKloGjb49bxRSzHfChyI86teR+6xxoiI1V5jv8CHL2AIUmA2rg0xTZcYaC9GguympA==}
@@ -11610,9 +11594,6 @@ packages:
resolution: {integrity: sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==}
engines: {node: '>= 0.4'}
- resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==}
-
resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}
@@ -11744,9 +11725,6 @@ packages:
resolution: {integrity: sha512-o3yWv49B/o4QZk5ZcsALc6t0+eCelPc44zZsLtCQnZPDwFpDYSWcDnrv2TtMmMbQ7uKo3J0HTURCqckw23czNQ==}
engines: {node: '>=12.0.0'}
- resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==}
-
resolution: {integrity: sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A==}
@@ -12208,8 +12186,9 @@ packages:
resolution: {integrity: sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==}
- resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==}
+ resolution: {integrity: sha512-nIZ2N2dFpjBsg2hgitKu7mA+FvsIJuGJOwysRngmVRRmWgR/UyPjwJj8c/fT/dhm8EkHnF5EOogRf+0Z2qrimA==}
+ engines: {node: '>=20.0.0'}
resolution: {integrity: sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==}
@@ -12730,23 +12709,23 @@ packages:
peerDependencies:
vitest: '>=2.0.0'
- resolution: {integrity: sha512-fhACrNXUidIbGSBr5FlbuBkO7VWC1ZyLl0DO4CU2DrQoAPxX84Ysxs+HeGQpii5lZWV1Q4gBZTTu49mF+A6Edw==}
- engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0}
+ resolution: {integrity: sha512-z0WxZRV2Sg48wF0FSgMq3TFG8JS38/Qr96vZVZdX6+Em9raQTvnXQvdTFJe2m3rfyJnEHeHQ/snceIdi8D1pVg==}
+ engines: {node: ^22.12.0 || ^24.0.0 || >=26.0.0}
hasBin: true
peerDependencies:
'@edge-runtime/vm': '*'
'@opentelemetry/api': ^1.9.0
- '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0
- '@vitest/browser-playwright': 4.1.11
- '@vitest/browser-preview': 4.1.11
- '@vitest/browser-webdriverio': 4.1.11
- '@vitest/coverage-istanbul': 4.1.11
- '@vitest/coverage-v8': 4.1.11
- '@vitest/ui': 4.1.11
+ '@types/node': ^22.0.0 || >=24.0.0
+ '@vitest/browser-playwright': 5.0.4
+ '@vitest/browser-preview': 5.0.4
+ '@vitest/browser-webdriverio': ^5.0.0-beta.5 || >=5.0.0
+ '@vitest/coverage-istanbul': 5.0.4
+ '@vitest/coverage-v8': 5.0.4
+ '@vitest/ui': 5.0.4
happy-dom: '*'
jsdom: '*'
- vite: ^6.0.0 || ^7.0.0 || ^8.0.0
+ vite: ^6.4.0 || ^7.0.0 || ^8.0.0
peerDependenciesMeta:
'@edge-runtime/vm':
optional: true
@@ -12933,9 +12912,9 @@ packages:
engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0}
hasBin: true
- resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==}
- engines: {node: '>=8'}
+ resolution: {integrity: sha512-Tb2FUhB4vUsGQlfSquQLYkApkuPAFQXGFzxWKHHumVz2dK+X1RUm/HnID4+TfIGYJ1kTcwOaCk/buYCEJr6YjQ==}
+ engines: {node: '>=20.11'}
hasBin: true
@@ -17398,7 +17377,7 @@ snapshots:
dependencies:
deepmerge: 4.3.1
- magic-string: 1.4.1
+ magic-string: 1.4.3
obug: 2.2.1
svelte: 5.57.2(@typescript-eslint/[email protected])
@@ -17652,7 +17631,7 @@ snapshots:
picocolors: 1.1.1
pretty-format: 27.5.1
- '@testing-library/[email protected](@testing-library/[email protected])([email protected])':
+ '@testing-library/[email protected](@testing-library/[email protected])([email protected])':
dependencies:
'@adobe/css-tools': 4.5.0
'@testing-library/dom': 10.4.1
@@ -17662,20 +17641,20 @@ snapshots:
picocolors: 1.1.1
redent: 3.0.0
optionalDependencies:
'@testing-library/[email protected]([email protected](@typescript-eslint/[email protected]))':
dependencies:
svelte: 5.57.2(@typescript-eslint/[email protected])
dependencies:
'@testing-library/dom': 10.4.1
'@testing-library/svelte-core': 1.1.3([email protected](@typescript-eslint/[email protected]))
svelte: 5.57.2(@typescript-eslint/[email protected])
optionalDependencies:
'@testing-library/[email protected](@testing-library/[email protected])':
dependencies:
@@ -18571,60 +18550,34 @@ snapshots:
dependencies:
valibot: 1.4.2(@typescript/[email protected])
dependencies:
'@bcoe/v8-coverage': 1.0.2
- '@vitest/utils': 4.1.11
+ '@vitest/istanbul-lib-coverage': 1.0.2
+ '@vitest/istanbul-lib-report': 1.0.2
ast-v8-to-istanbul: 1.0.7
- istanbul-lib-coverage: 3.2.2
- istanbul-lib-report: 3.0.1
- istanbul-reports: 3.2.0
magicast: 0.5.5
- obug: 2.2.1
+ obug: 3.0.0
std-env: 4.3.0
tinyrainbow: 3.2.0
- '@vitest/[email protected]':
+ '@vitest/[email protected]': {}
+
+ '@vitest/[email protected]':
dependencies:
- '@standard-schema/spec': 1.1.0
- '@types/chai': 5.2.3
- '@vitest/spy': 4.1.11
- '@vitest/utils': 4.1.11
- chai: 6.3.0
- tinyrainbow: 3.2.0
+ '@vitest/istanbul-lib-coverage': 1.0.2
dependencies:
- '@vitest/spy': 4.1.11
+ '@jridgewell/trace-mapping': 0.3.31
+ '@vitest/spy': 5.0.4
estree-walker: 3.0.3
- magic-string: 0.30.21
+ magic-string: 1.4.3
optionalDependencies:
- '@vitest/[email protected]':
- dependencies:
- tinyrainbow: 3.2.0
-
- '@vitest/[email protected]':
- dependencies:
- '@vitest/utils': 4.1.11
- pathe: 2.0.3
-
- '@vitest/[email protected]':
- dependencies:
- '@vitest/pretty-format': 4.1.11
- '@vitest/utils': 4.1.11
- magic-string: 0.30.21
- pathe: 2.0.3
-
- '@vitest/[email protected]': {}
-
- '@vitest/[email protected]':
- dependencies:
- '@vitest/pretty-format': 4.1.11
- convert-source-map: 2.0.0
- tinyrainbow: 3.2.0
+ '@vitest/[email protected]': {}
'@webassemblyjs/[email protected]':
dependencies:
@@ -22349,19 +22302,6 @@ snapshots:
-
- dependencies:
- istanbul-lib-coverage: 3.2.2
- make-dir: 4.0.0
- supports-color: 7.2.0
-
- dependencies:
- html-escaper: 2.0.2
- istanbul-lib-report: 3.0.1
-
@@ -22853,6 +22793,10 @@ snapshots:
dependencies:
'@jridgewell/sourcemap-codec': 1.6.0
+ dependencies:
+ '@jridgewell/sourcemap-codec': 1.6.0
+
dependencies:
'@babel/parser': 7.29.9
@@ -22863,10 +22807,6 @@ snapshots:
dependencies:
semver: 6.3.1
- dependencies:
- semver: 7.8.5
-
dependencies:
'@mapbox/point-geometry': 1.1.0
@@ -23864,6 +23804,8 @@ snapshots:
+
dependencies:
debug: 4.4.3([email protected])
@@ -25728,8 +25670,6 @@ snapshots:
side-channel-map: 1.0.1
side-channel-weakmap: 1.0.2
-
@@ -25894,8 +25834,6 @@ snapshots:
-
@@ -26463,7 +26401,7 @@ snapshots:
@@ -27014,67 +26952,55 @@ snapshots:
optionalDependencies:
dependencies:
dependencies:
- '@vitest/expect': 4.1.11
- '@vitest/pretty-format': 4.1.11
- '@vitest/runner': 4.1.11
- '@vitest/snapshot': 4.1.11
- '@vitest/spy': 4.1.11
- '@vitest/utils': 4.1.11
+ '@types/chai': 5.2.3
+ chai: 6.3.0
es-module-lexer: 2.3.2
expect-type: 1.4.0
- magic-string: 0.30.21
- obug: 2.2.1
- pathe: 2.0.3
+ magic-string: 1.4.3
+ obug: 3.0.0
picomatch: 4.0.7
std-env: 4.3.0
- tinybench: 2.9.0
+ tinybench: 6.2.2
tinyexec: 1.3.1
tinyglobby: 0.2.17
- tinyrainbow: 3.2.0
- why-is-node-running: 2.3.0
+ why-is-node-running: 3.2.1
optionalDependencies:
'@opentelemetry/api': 1.9.1
'@types/node': 24.19.2
- '@vitest/coverage-v8': 4.1.11([email protected])
+ '@vitest/coverage-v8': 5.0.4([email protected])
happy-dom: 20.14.6
transitivePeerDependencies:
- msw
dependencies:
- '@vitest/expect': 4.1.11
- '@vitest/pretty-format': 4.1.11
- '@vitest/runner': 4.1.11
- '@vitest/snapshot': 4.1.11
- '@vitest/spy': 4.1.11
- '@vitest/utils': 4.1.11
+ '@types/chai': 5.2.3
+ chai: 6.3.0
es-module-lexer: 2.3.2
expect-type: 1.4.0
- magic-string: 0.30.21
- obug: 2.2.1
- pathe: 2.0.3
+ magic-string: 1.4.3
+ obug: 3.0.0
picomatch: 4.0.7
std-env: 4.3.0
- tinybench: 2.9.0
+ tinybench: 6.2.2
tinyexec: 1.3.1
tinyglobby: 0.2.17
- tinyrainbow: 3.2.0
- why-is-node-running: 2.3.0
+ why-is-node-running: 3.2.1
optionalDependencies:
'@opentelemetry/api': 1.9.1
'@types/node': 24.19.2
- '@vitest/coverage-v8': 4.1.11([email protected])
+ '@vitest/coverage-v8': 5.0.4([email protected])
happy-dom: 20.14.6
jsdom: 26.1.0([email protected])
transitivePeerDependencies:
@@ -27334,10 +27260,7 @@ snapshots:
dependencies:
isexe: 4.0.0
- dependencies:
- siginfo: 2.0.0
- stackback: 0.0.2
dependencies:
diff --git a/server/package.json b/server/package.json
index c0c00ac765..6390410140 100644
--- a/server/package.json
+++ b/server/package.json
@@ -148,7 +148,7 @@
"@types/ua-parser-js": "^0.7.36",
"@types/validator": "^13.15.2",
"@typescript/native": "npm:typescript@^7.0.2",
- "@vitest/coverage-v8": "^4.0.0",
+ "@vitest/coverage-v8": "^5.0.0",
"eslint": "^10.0.0",
"eslint-config-prettier": "^10.1.8",
"eslint-import-resolver-typescript": "^4.4.5",
@@ -166,7 +166,7 @@
"typescript": "npm:@typescript/typescript6@^6.0.2",
"typescript-eslint": "^8.28.0",
"unplugin-swc": "^1.4.5",
- "vitest": "^4.0.0"
+ "vitest": "^5.0.0"
},
"overrides": {
"sharp": "^0.35.3"
diff --git a/server/test/medium/specs/services/user.service.spec.ts b/server/test/medium/specs/services/user.service.spec.ts
index 1177922282..b2efa4bdec 100644
--- a/server/test/medium/specs/services/user.service.spec.ts
+++ b/server/test/medium/specs/services/user.service.spec.ts
@@ -330,7 +330,7 @@ describe(UserService.name, () => {
});
});
- describe.sequential('handleUserDeleteCheck', () => {
+ describe('handleUserDeleteCheck', { concurrent: false }, () => {
beforeEach(async () => {
const { sut } = setup();
// These tests specifically have to be sequential otherwise we hit race conditions with config changes applying in incorrect tests
diff --git a/web/package.json b/web/package.json
index ad0393af2d..bcbab628be 100644
--- a/web/package.json
+++ b/web/package.json
@@ -93,7 +93,7 @@
"@types/luxon": "^3.4.2",
"@types/qrcode": "^1.5.5",
"@typescript/native": "npm:typescript@^7.0.2",
- "@vitest/coverage-v8": "^4.0.0",
+ "@vitest/coverage-v8": "^5.0.0",
"dotenv": "^18.0.0",
"eslint": "^10.2.1",
"eslint-config-prettier": "^10.1.8",
@@ -116,6 +116,6 @@
"typescript": "npm:@typescript/typescript6@^6.0.2",
"typescript-eslint": "8.71.1",
"vite": "^8.0.0",
- "vitest": "^4.0.0"
+ "vitest": "^5.0.0"
}
}
diff --git a/web/src/lib/components/album-page/__tests__/AlbumCard.spec.ts b/web/src/lib/components/album-page/__tests__/AlbumCard.spec.ts
index f14db2d6c0..0134dfa929 100644
--- a/web/src/lib/components/album-page/__tests__/AlbumCard.spec.ts
+++ b/web/src/lib/components/album-page/__tests__/AlbumCard.spec.ts
@@ -43,15 +43,21 @@ describe('AlbumCard component', () => {
const albumDetailsElement = sut.getByTestId('album-details');
const detailsText = `${count} items` + (shared ? ' . Shared' : '');
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(albumImgElement).toHaveAttribute('src');
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(albumImgElement).toHaveAttribute('alt', album.albumName);
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
await waitFor(() => expect(albumImgElement).toHaveAttribute('src'));
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(albumImgElement).toHaveAttribute('alt', album.albumName);
expect(sdkMock.viewAsset).not.toHaveBeenCalled();
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(albumNameElement).toHaveTextContent(album.albumName);
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(albumDetailsElement).toHaveTextContent(new RegExp(detailsText));
});
@@ -66,10 +72,14 @@ describe('AlbumCard component', () => {
const albumNameElement = sut.getByTestId('album-name');
const albumDetailsElement = sut.getByTestId('album-details');
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(albumImgElement).toHaveAttribute('alt', album.albumName);
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(albumImgElement).toHaveAttribute('src');
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(albumNameElement).toHaveTextContent('some album name');
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(albumDetailsElement).toHaveTextContent(`${album.assetCount} item`);
});
@@ -78,6 +88,7 @@ describe('AlbumCard component', () => {
sut = render(AlbumCard, { album });
const contextButtonParent = sut.queryByTestId('context-button-parent');
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(contextButtonParent).not.toBeInTheDocument();
});
});
diff --git a/web/src/lib/components/album-page/__tests__/AlbumSummary.spec.ts b/web/src/lib/components/album-page/__tests__/AlbumSummary.spec.ts
index 7a4dfeeb89..cefad1d1ad 100644
--- a/web/src/lib/components/album-page/__tests__/AlbumSummary.spec.ts
+++ b/web/src/lib/components/album-page/__tests__/AlbumSummary.spec.ts
@@ -23,12 +23,15 @@ describe('AlbumSummary component', () => {
assetCount: 3,
});
const { rerender } = render(AlbumSummary, { album });
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(screen.getByTestId('album-details')).toHaveTextContent('Jun 10');
await rerender({ album: { ...album, startDate: '2026-06-15T12:00:00.000Z', assetCount: 2 } });
const details = screen.getByTestId('album-details');
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(details).toHaveTextContent('Jun 15');
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(details).not.toHaveTextContent('Jun 10');
});
});
diff --git a/web/src/lib/components/asset-viewer/AssetViewer.spec.ts b/web/src/lib/components/asset-viewer/AssetViewer.spec.ts
index a1498ed2ff..4d6bb1eb37 100644
--- a/web/src/lib/components/asset-viewer/AssetViewer.spec.ts
+++ b/web/src/lib/components/asset-viewer/AssetViewer.spec.ts
@@ -66,6 +66,7 @@ describe('AssetViewer', () => {
showNavigation: false,
});
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(getByLabelText('to_favorite')).toBeInTheDocument();
expect(queryByLabelText('unfavorite')).toBeNull();
@@ -74,6 +75,7 @@ describe('AssetViewer', () => {
await waitFor(() =>
expect(updateAsset).toHaveBeenCalledWith({ id: asset.id, updateAssetDto: { isFavorite: true } }),
);
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
await waitFor(() => expect(getByLabelText('unfavorite')).toBeInTheDocument());
});
});
diff --git a/web/src/lib/components/asset-viewer/AssetViewerNavBar.spec.ts b/web/src/lib/components/asset-viewer/AssetViewerNavBar.spec.ts
index 7c2c3a6bee..2c118f3477 100644
--- a/web/src/lib/components/asset-viewer/AssetViewerNavBar.spec.ts
+++ b/web/src/lib/components/asset-viewer/AssetViewerNavBar.spec.ts
@@ -50,6 +50,7 @@ describe('AssetViewerNavBar component', () => {
const asset = assetFactory.build({ isTrashed: false });
const { getByLabelText } = renderWithTooltips(AssetViewerNavBar, { asset, ...additionalProps });
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(getByLabelText('go_back')).toBeInTheDocument();
});
@@ -64,6 +65,7 @@ describe('AssetViewerNavBar component', () => {
authManager.setPreferences(preferences);
const { getByLabelText } = renderWithTooltips(AssetViewerNavBar, { asset, ...additionalProps });
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(getByLabelText('delete')).toBeInTheDocument();
});
});
diff --git a/web/src/lib/components/asset-viewer/DetailPanelDescription.spec.ts b/web/src/lib/components/asset-viewer/DetailPanelDescription.spec.ts
index e449f057c2..488c2ac126 100644
--- a/web/src/lib/components/asset-viewer/DetailPanelDescription.spec.ts
+++ b/web/src/lib/components/asset-viewer/DetailPanelDescription.spec.ts
@@ -26,6 +26,7 @@ describe('DetailPanelDescription', () => {
const textarea = screen.getByTestId('autogrow-textarea') as HTMLTextAreaElement;
await user.type(textarea, 'unsaved draft');
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(textarea).toHaveValue('unsaved draft');
await rerender({
@@ -33,6 +34,7 @@ describe('DetailPanelDescription', () => {
isOwner: true,
});
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(screen.getByTestId('autogrow-textarea')).toHaveValue('');
});
@@ -53,6 +55,7 @@ describe('DetailPanelDescription', () => {
},
});
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(screen.getByTestId('autogrow-textarea')).toHaveValue('first description');
await rerender({
@@ -60,6 +63,7 @@ describe('DetailPanelDescription', () => {
isOwner: true,
});
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(screen.getByTestId('autogrow-textarea')).toHaveValue('second description');
});
});
diff --git a/web/src/lib/components/asset-viewer/actions/DeleteAction.spec.ts b/web/src/lib/components/asset-viewer/actions/DeleteAction.spec.ts
index d715540d3d..2b9f9bb9c4 100644
--- a/web/src/lib/components/asset-viewer/actions/DeleteAction.spec.ts
+++ b/web/src/lib/components/asset-viewer/actions/DeleteAction.spec.ts
@@ -23,6 +23,7 @@ describe('DeleteAction component', () => {
onAction: vi.fn(),
preAction: vi.fn(),
});
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(getByLabelText('delete')).toBeInTheDocument();
expect(queryByTitle('deletePermanently')).toBeNull();
});
@@ -39,6 +40,7 @@ describe('DeleteAction component', () => {
onAction: vi.fn(),
preAction: vi.fn(),
});
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(getByLabelText('permanently_delete')).toBeInTheDocument();
expect(queryByTitle('delete')).toBeNull();
});
diff --git a/web/src/lib/components/maintenance/MaintenanceBackupEntry.spec.ts b/web/src/lib/components/maintenance/MaintenanceBackupEntry.spec.ts
index 56e4a2baa5..548c691726 100644
--- a/web/src/lib/components/maintenance/MaintenanceBackupEntry.spec.ts
+++ b/web/src/lib/components/maintenance/MaintenanceBackupEntry.spec.ts
@@ -49,6 +49,7 @@ describe('MaintenanceBackupEntry', () => {
timezone: 'Asia/Tokyo',
});
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(screen.getByText(expectedRelativeTime!)).toBeInTheDocument();
});
});
diff --git a/web/src/lib/components/shared-components/search-bar/SearchTagsSection.spec.ts b/web/src/lib/components/shared-components/search-bar/SearchTagsSection.spec.ts
index 72c6e43cbf..0778ba1cd1 100644
--- a/web/src/lib/components/shared-components/search-bar/SearchTagsSection.spec.ts
+++ b/web/src/lib/components/shared-components/search-bar/SearchTagsSection.spec.ts
@@ -40,6 +40,7 @@ describe('SearchTagsSection component', () => {
await user.click(await screen.findByRole('button', { name: 'holiday' }));
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(screen.queryByRole('button', { name: 'holiday' })).not.toBeInTheDocument();
expect([...(searchManager.filter.tagIds ?? [])]).toEqual(['tag-2']);
});
diff --git a/web/src/lib/components/shared-components/side-bar/RecentAlbums.spec.ts b/web/src/lib/components/shared-components/side-bar/RecentAlbums.spec.ts
index 1745aa022c..bc6cb35786 100644
--- a/web/src/lib/components/shared-components/side-bar/RecentAlbums.spec.ts
+++ b/web/src/lib/components/shared-components/side-bar/RecentAlbums.spec.ts
@@ -24,8 +24,11 @@ describe('RecentAlbums component', () => {
const links = screen.getAllByRole('link');
expect(links).toHaveLength(3);
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(links[0]).toHaveAttribute('href', `/albums/${albums[2].id}`);
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(links[1]).toHaveAttribute('href', `/albums/${albums[1].id}`);
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(links[2]).toHaveAttribute('href', `/albums/${albums[3].id}`);
});
});
diff --git a/web/src/lib/elements/__test__/FormatMessage.spec.ts b/web/src/lib/elements/__test__/FormatMessage.spec.ts
index dc12680392..5c066d897d 100644
--- a/web/src/lib/elements/__test__/FormatMessage.spec.ts
+++ b/web/src/lib/elements/__test__/FormatMessage.spec.ts
@@ -30,6 +30,7 @@ describe('FormatMessage component', () => {
key: 'hello' as Translations,
values: { name: 'test' },
});
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(screen.getByText('Hello test')).toBeInTheDocument();
});
@@ -43,6 +44,7 @@ describe('FormatMessage component', () => {
render(FormatMessage, {
key: 'hello' as Translations,
});
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(screen.getByText('Hello {name}')).toBeInTheDocument();
});
@@ -51,6 +53,7 @@ describe('FormatMessage component', () => {
key: 'html' as Translations,
values: { name: 'test' },
});
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(screen.getByText('Hello test')).toBeInTheDocument();
});
@@ -74,11 +77,13 @@ describe('FormatMessage component', () => {
render(FormatMessage, {
key: 'xss' as Translations,
});
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(screen.getByText('<image/src/onerror=prompt(8)>')).toBeInTheDocument();
});
it('displays the message key when not found', () => {
render(FormatMessage, { key: 'invalid.key' as Translations });
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(screen.getByText('invalid.key')).toBeInTheDocument();
});
diff --git a/web/src/lib/elements/__test__/StarRating.spec.ts b/web/src/lib/elements/__test__/StarRating.spec.ts
index 827e336215..53fdbcd445 100644
--- a/web/src/lib/elements/__test__/StarRating.spec.ts
+++ b/web/src/lib/elements/__test__/StarRating.spec.ts
@@ -19,6 +19,7 @@ describe('StarRating component', () => {
const labelText = component.getAllByText('rating_count') as HTMLSpanElement[];
expect(labelText.length).toBe(3);
const clearButton = component.getByRole('button') as HTMLButtonElement;
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(clearButton).toBeInTheDocument();
// Check the clear button content
diff --git a/web/src/lib/modals/AlbumPickerModal.spec.ts b/web/src/lib/modals/AlbumPickerModal.spec.ts
index 4245f3e17f..f8cdda0d12 100644
--- a/web/src/lib/modals/AlbumPickerModal.spec.ts
+++ b/web/src/lib/modals/AlbumPickerModal.spec.ts
@@ -34,7 +34,9 @@ describe('AlbumPickerModal component', () => {
render(AlbumPickerModal, { props: { onClose, selectedItemsCount: 1 } });
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(await screen.findByText('Add 1 item to album')).toBeInTheDocument();
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(screen.queryByText('Select albums')).not.toBeInTheDocument();
});
@@ -43,7 +45,9 @@ describe('AlbumPickerModal component', () => {
render(AlbumPickerModal, { props: { onClose, selectedItemsCount: 3 } });
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(await screen.findByText('Add 3 items to album')).toBeInTheDocument();
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(screen.queryByText('Select albums')).not.toBeInTheDocument();
});
@@ -52,7 +56,9 @@ describe('AlbumPickerModal component', () => {
render(AlbumPickerModal, { props: { onClose } });
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(await screen.findByText('Select albums')).toBeInTheDocument();
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(screen.queryByText('Add 1 item to album')).not.toBeInTheDocument();
});
});
diff --git a/web/src/lib/modals/AssetSelectionChangeDateModal.spec.ts b/web/src/lib/modals/AssetSelectionChangeDateModal.spec.ts
index fdd3381233..7a9eae0c56 100644
--- a/web/src/lib/modals/AssetSelectionChangeDateModal.spec.ts
+++ b/web/src/lib/modals/AssetSelectionChangeDateModal.spec.ts
@@ -86,6 +86,7 @@ describe('DateSelectionModal component', () => {
expect(getTimeZoneInput().value).toBe('Europe/Berlin (+01:00)');
await fireEvent.focus(getTimeZoneInput());
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(screen.queryByText('no_results')).not.toBeInTheDocument();
});
@@ -100,6 +101,7 @@ describe('DateSelectionModal component', () => {
expect(getTimeZoneInput().value).toBe('Europe/Berlin (+01:00)');
await fireEvent.focus(getTimeZoneInput());
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(screen.queryByText('no_results')).not.toBeInTheDocument();
});
diff --git a/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/AlbumDescription.spec.ts b/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/AlbumDescription.spec.ts
index e9990cf5bb..d5de4f80e9 100644
--- a/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/AlbumDescription.spec.ts
+++ b/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/AlbumDescription.spec.ts
@@ -7,12 +7,14 @@ describe('AlbumDescription component', () => {
it('shows an AutogrowTextarea component when isOwned is true', () => {
render(AlbumDescription, { isEditor: true, id: '', description: '' });
const autogrowTextarea = screen.getByTestId('autogrow-textarea');
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(autogrowTextarea).toBeInTheDocument();
});
it('does not show an AutogrowTextarea component when isOwned is false', () => {
render(AlbumDescription, { isEditor: false, id: '', description: '' });
const autogrowTextarea = screen.queryByTestId('autogrow-textarea');
+ // @ts-expect-error pending a type fix: https://github.com/testing-library/jest-dom/pull/742/changes
expect(autogrowTextarea).not.toBeInTheDocument();
});
});