• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mongodb-js / mongodb-mcp-server / 16292877152

15 Jul 2025 12:10PM UTC coverage: 77.385% (+2.1%) from 75.27%
16292877152

push

github

web-flow
chore(tests): switch to vitest (#363)

498 of 687 branches covered (72.49%)

Branch coverage included in aggregate %.

0 of 27 new or added lines in 2 files covered. (0.0%)

293 existing lines in 26 files now uncovered.

2828 of 3611 relevant lines covered (78.32%)

28.46 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/eslint.config.js
1
import { defineConfig, globalIgnores } from "eslint/config";
×
2
import js from "@eslint/js";
×
3
import globals from "globals";
×
4
import tseslint from "typescript-eslint";
×
5
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
×
NEW
6
import vitestPlugin from "eslint-plugin-vitest";
×
7

8
const testFiles = ["tests/**/*.test.ts", "tests/**/*.ts"];
×
9

10
const files = [...testFiles, "src/**/*.ts", "scripts/**/*.ts"];
×
11

12
export default defineConfig([
×
13
    { files, plugins: { js }, extends: ["js/recommended"] },
×
14
    { files, languageOptions: { globals: globals.node } },
×
15
    {
×
16
        files: testFiles,
×
17
        plugins: {
×
NEW
18
            vitest: vitestPlugin,
×
19
        },
×
20
        languageOptions: {
×
21
            globals: {
×
22
                ...globals.node,
×
23
            },
×
24
        },
×
NEW
25
        rules: {
×
NEW
26
            ...vitestPlugin.configs.recommended.rules,
×
NEW
27
            "vitest/valid-title": "off",
×
NEW
28
            "vitest/expect-expect": [
×
NEW
29
                "error",
×
NEW
30
                {
×
NEW
31
                    assertFunctionNames: ["expect", "expectDefined", "verifyMockCalls"],
×
NEW
32
                },
×
NEW
33
            ],
×
NEW
34
        },
×
35
    },
×
36
    tseslint.configs.recommendedTypeChecked,
×
37
    {
×
38
        files,
×
39
        languageOptions: {
×
40
            parserOptions: {
×
41
                project: "./tsconfig.json",
×
42
                tsconfigRootDir: import.meta.dirname,
×
43
            },
×
44
        },
×
45
    },
×
46
    {
×
47
        files,
×
48
        rules: {
×
49
            "@typescript-eslint/switch-exhaustiveness-check": "error",
×
50
            "@typescript-eslint/no-non-null-assertion": "error",
×
51
        },
×
52
    },
×
53
    globalIgnores([
×
54
        "node_modules",
×
55
        "dist",
×
56
        "src/common/atlas/openapi.d.ts",
×
57
        "coverage",
×
58
        "global.d.ts",
×
59
        "eslint.config.js",
×
NEW
60
        "vitest.config.ts",
×
61
        "src/types/*.d.ts",
×
62
    ]),
×
63
    eslintPluginPrettierRecommended,
×
64
]);
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc