Skip to content

Commit 6505b99

Browse files
chore(deps): update dependency @vitest/eslint-plugin to v1.4.0 (#1520)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Shinigami92 <chrissi92@hotmail.de>
1 parent 931e084 commit 6505b99

File tree

4 files changed

+18
-103
lines changed

4 files changed

+18
-103
lines changed

eslint.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ export default defineConfig(
225225
},
226226
],
227227

228+
'unicorn/no-useless-undefined': ['error', { checkArguments: false }],
229+
228230
...eslintPluginVitest.configs.recommended.rules,
229231

230232
'vitest/expect-expect': 'off',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"@types/pg": "8.15.6",
9999
"@types/yargs": "17.0.34",
100100
"@vitest/coverage-v8": "3.2.4",
101-
"@vitest/eslint-plugin": "1.3.9",
101+
"@vitest/eslint-plugin": "1.4.0",
102102
"@vitest/ui": "3.2.4",
103103
"config": "4.1.1",
104104
"dotenv": "17.2.3",

pnpm-lock.yaml

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

test/db.spec.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ describe('db', () => {
5353

5454
await db.query('query');
5555

56-
expect(mocked).toHaveBeenCalledOnce();
57-
expect(mocked).toHaveBeenCalledWith('query', undefined);
56+
expect(mocked).toHaveBeenCalledExactlyOnceWith('query', undefined);
5857
});
5958
});
6059

@@ -90,8 +89,10 @@ describe('db', () => {
9089
it('should call client.query with query', async () => {
9190
await db.query('query');
9291

93-
expect(hoisted.client.query).toHaveBeenCalledOnce();
94-
expect(hoisted.client.query).toHaveBeenCalledWith('query', undefined);
92+
expect(hoisted.client.query).toHaveBeenCalledExactlyOnceWith(
93+
'query',
94+
undefined
95+
);
9596
});
9697

9798
it('should not call client.query if client.connect fails', async () => {

0 commit comments

Comments
 (0)