Skip to content

Commit c910deb

Browse files
authored
Merge pull request #203 from redhat-developer/dependabot/npm_and_yarn/vitest/eslint-plugin-1.6.15
build(deps-dev): bump @vitest/eslint-plugin from 1.6.10 to 1.6.15
2 parents d4264ba + 064957c commit c910deb

File tree

10 files changed

+26
-110
lines changed

10 files changed

+26
-110
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@typescript-eslint/eslint-plugin": "^8.58.2",
3838
"@typescript-eslint/parser": "^8.58.2",
3939
"@vitest/coverage-v8": "^4.0.16",
40-
"@vitest/eslint-plugin": "^1.6.10",
40+
"@vitest/eslint-plugin": "^1.6.15",
4141
"autoprefixer": "^10.5.0",
4242
"concurrently": "^9.2.1",
4343
"eslint": "^9.39.2",

packages/backend/src/apis/alternatives-api-impl.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ describe('AlternativesApiImpl#getAlternatives', () => {
7979

8080
await expect(() => {
8181
return api.getAlternatives();
82-
}).rejects.toThrowError('Failed to get alternatives');
82+
}).rejects.toThrow('Failed to get alternatives');
8383
});
8484
});
8585

@@ -97,6 +97,6 @@ describe('AlternativesApiImpl#getAlternativeReport', () => {
9797

9898
await expect(() => {
9999
return api.getAlternativeReport(LOCAL_IMAGE_ALT_MOCK);
100-
}).rejects.toThrowError('Failed to get report');
100+
}).rejects.toThrow('Failed to get report');
101101
});
102102
});

packages/backend/src/apis/dialog-api-impl.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ test('expect error to be propagated', async () => {
4040

4141
await expect(() => {
4242
return dialog.showWarningMessage('Are you sure?', 'Yes', 'No');
43-
}).rejects.toThrowError('Something went wrong');
43+
}).rejects.toThrow('Something went wrong');
4444
});

packages/backend/src/services/alternative-service.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ describe('AlternativeService#getAlternativeReport', () => {
394394

395395
const service = getAlternativeService();
396396

397-
await expect(service.getAlternativeReport(mockAlternative)).rejects.toThrowError('Cannot find tag 1.21 for nginx');
397+
await expect(service.getAlternativeReport(mockAlternative)).rejects.toThrow('Cannot find tag 1.21 for nginx');
398398
});
399399
});
400400

packages/backend/src/services/podman-service.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ describe('getPodmanExtension', () => {
100100

101101
const service = getPodmanService();
102102

103-
expect(() => service['getPodmanExtension']()).toThrowError('podman extension not found');
103+
expect(() => service['getPodmanExtension']()).toThrow('podman extension not found');
104104
});
105105
});
106106

@@ -136,7 +136,7 @@ describe('getRunningProviderContainerConnectionByEngineId', () => {
136136

137137
const service = getPodmanService();
138138

139-
await expect(service.getRunningProviderContainerConnectionByEngineId('test-engine-id')).rejects.toThrowError(
139+
await expect(service.getRunningProviderContainerConnectionByEngineId('test-engine-id')).rejects.toThrow(
140140
'connection not found for engineId test-engine-id',
141141
);
142142
});
@@ -215,7 +215,7 @@ describe('clone', () => {
215215
title: 'Cloning container',
216216
},
217217
}),
218-
).rejects.toThrowError(error);
218+
).rejects.toThrow(error);
219219

220220
expect(TELEMETRY_LOGGER_MOCK.logUsage).toHaveBeenCalledWith(
221221
TelemetryEvents.CLONE_CONTAINER,

packages/backend/src/services/scanners/grype-service.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ test('should throw error when extension is undefined', () => {
5151

5252
const service = getGrypeService();
5353

54-
expect(() => service['getGrypeAPI']()).toThrowError('cannot find the grype extension');
54+
expect(() => service['getGrypeAPI']()).toThrow('cannot find the grype extension');
5555
});
5656

5757
describe('GrypeService#toVulnerabilitySummary', () => {

packages/backend/src/services/webview-service.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ test('non-init service should throw an error trying to access webview', async ()
5252

5353
expect(() => {
5454
webview.getPanel();
55-
}).toThrowError('webview panel is not initialized.');
55+
}).toThrow('webview panel is not initialized.');
5656
});
5757

5858
test('expect init to define html content', async () => {

packages/backend/src/utils/promise-queue.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ describe('PromiseQueue', () => {
107107
queue.enqueue(async () => {
108108
throw error;
109109
}),
110-
).rejects.toThrowError('Task failed');
110+
).rejects.toThrow('Task failed');
111111

112112
// Queue should still work after rejection
113113
const result = await queue.enqueue(async () => 'works');
@@ -165,8 +165,8 @@ describe('PromiseQueue', () => {
165165
});
166166

167167
test('should throw error if maxConcurrent is less than 1', () => {
168-
expect(() => new PromiseQueue(0)).toThrowError('maxConcurrent must be at least 1');
169-
expect(() => new PromiseQueue(-1)).toThrowError('maxConcurrent must be at least 1');
168+
expect(() => new PromiseQueue(0)).toThrow('maxConcurrent must be at least 1');
169+
expect(() => new PromiseQueue(-1)).toThrow('maxConcurrent must be at least 1');
170170
});
171171

172172
test('should update counts correctly throughout execution', async () => {
@@ -219,7 +219,7 @@ test('error on promise creation should be correctly handled', async () => {
219219

220220
await expect(async () => {
221221
return queue.enqueue(() => mThrow());
222-
}).rejects.toThrowError('test');
222+
}).rejects.toThrow('test');
223223

224224
expect(queue.runningCount).toBe(0);
225225
});

packages/shared/src/messages/message-proxy.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ test('Test raising exception', async () => {
173173
throw new Error('big error');
174174
});
175175

176-
await expect(rpcBrowser.invoke('raiseError')).rejects.toThrowError('big error');
176+
await expect(rpcBrowser.invoke('raiseError')).rejects.toThrow('big error');
177177
});
178178

179179
test('getChannel should use CHANNEL property of classType provided', () => {

pnpm-lock.yaml

Lines changed: 11 additions & 95 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)