Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/vitest-dev/vscode. VS Code extension for Vitest vitest.dev/vscode
testing vitest vscode
Something went wrong. Try again.
vscode package.json
16 kB · 439 lines
JSON
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440{ "name": "explorer", "displayName": "Vitest", "version": "1.52.1", "description": "A Vite-native testing framework. It's fast!", "categories": [ "Testing" ], "keywords": [ "javascript", "test", "typescript", "vitest" ], "bugs": { "url": "https://github.com/vitest-dev/vscode/issues" }, "license": "MIT", "author": "Vitest Team", "repository": { "type": "git", "url": "https://github.com/vitest-dev/vscode.git" }, "sponsor": { "url": "https://opencollective.com/vitest" }, "publisher": "vitest", "type": "commonjs", "main": "./dist/extension.js", "scripts": { "vscode:prepublish": "pnpm build", "release": "tsx ./scripts/release.mts && git update-ref refs/heads/release refs/heads/main && git push origin release", "build": "tsdown --minify --clean", "package": "vsce package --no-dependencies", "dev": "EXTENSION_NODE_ENV=dev tsdown --watch --sourcemap", "test": "vscode-test", "test:watch": "vscode-test --watch-files src/**/*.ts --watch-files test/**/*.test.ts", "test-e2e": "vitest --root test/e2e", "test-e2e:legacy": "TEST_LEGACY=true vitest --root test/e2e", "ecosystem-ci:build": "SKIP_LEGACY=true pnpm build", "ecosystem-ci:test": "SKIP_LEGACY=true tsx ./scripts/ecosystem-ci.mts", "typecheck": "tsc -b ./ --noEmit", "fmt": "oxfmt --check", "fmt:fix": "oxfmt" }, "devDependencies": { "@playwright/test": "catalog:", "@types/chai": "catalog:", "@types/micromatch": "catalog:", "@types/mocha": "catalog:", "@types/node": "catalog:", "@types/prompts": "catalog:", "@types/semver": "catalog:", "@types/vscode": "^1.77.0", "@types/which": "catalog:", "@types/ws": "catalog:", "@vscode/test-cli": "catalog:", "@vscode/test-electron": "catalog:", "@vscode/vsce": "catalog:", "@vue/reactivity": "catalog:", "acorn": "catalog:", "acorn-walk": "catalog:", "birpc": "catalog:", "bumpp": "catalog:", "chai": "catalog:", "changelogithub": "catalog:", "execa": "catalog:", "find-up": "catalog:", "istanbul-to-vscode": "catalog:", "micromatch": "catalog:", "mighty-promise": "catalog:", "mocha": "catalog:", "oxfmt": "^0.37.0", "pathe": "catalog:", "picocolors": "catalog:", "prompts": "catalog:", "semver": "catalog:", "tsdown": "catalog:", "tsx": "catalog:", "typescript": "catalog:", "vite": "catalog:latest", "vitest": "catalog:latest", "which": "catalog:", "ws": "catalog:" }, "contributes": { "languages": [ { "id": "vitest-snapshot", "aliases": [ "Vitest Snapshot" ], "extensions": [ ".js.snap", ".jsx.snap", ".ts.snap", ".tsx.snap" ], "configuration": "./language-configuration.json" } ], "grammars": [ { "language": "vitest-snapshot", "scopeName": "source.vitest.snap", "path": "./syntaxes/vitest-snapshot.tmLanguage" } ], "commands": [ { "title": "Update Snapshot", "command": "vitest.updateSnapshot", "category": "Vitest" }, { "title": "Toggle Continuous Run", "command": "vitest.toggleContinuousRun", "category": "Vitest" }, { "title": "Show Output Channel", "command": "vitest.openOutput", "category": "Vitest" }, { "title": "Open Trace View", "command": "vitest.openTraceView", "category": "Vitest" }, { "title": "Show Shell Terminal", "command": "vitest.showShellTerminal", "category": "Vitest" }, { "title": "Reveal in Test Explorer", "command": "vitest.revealInTestExplorer", "category": "Vitest" }, { "title": "Run Related Tests", "command": "vitest.runRelatedTests", "category": "Vitest" }, { "title": "Open Transformed Module", "command": "vitest.openTransformedModule", "category": "Vitest" }, { "title": "Copy Error", "command": "vitest.copyErrorOutput", "shortTitle": "Copy", "category": "Vitest" }, { "title": "Copy Test Errors", "command": "vitest.copyTestItemErrors", "category": "Vitest" }, { "title": "Toggle Configs", "command": "vitest.toggleConfigs", "category": "Vitest" } ], "menus": { "testing/message/content": [ { "command": "vitest.copyErrorOutput", "when": "resourcePath in vitest.testFiles" } ], "testing/message/context": [ { "command": "vitest.copyErrorOutput", "when": "resourcePath in vitest.testFiles" } ], "editor/title/context": [ { "command": "vitest.revealInTestExplorer", "when": "resourcePath in vitest.testFiles", "group": "vitest" }, { "command": "vitest.openTransformedModule", "when": "vitest.environmentsSupported", "group": "vitest" }, { "command": "vitest.runRelatedTests", "when": "vitest.testFiles && !(resourcePath in vitest.testFiles)", "group": "vitest" } ], "commandPalette": [ { "command": "vitest.openTraceView", "when": "false" }, { "command": "vitest.toggleContinuousRun", "when": "false" }, { "command": "vitest.updateSnapshot", "when": "false" }, { "command": "vitest.copyErrorOutput", "when": "false" } ], "testing/item/context": [ { "command": "vitest.openTraceView", "when": "controllerId == 'vitest' && testId in vitest.traceViewTests", "group": "vitest" }, { "command": "vitest.updateSnapshot", "when": "controllerId == 'vitest'" }, { "command": "vitest.copyTestItemErrors", "when": "controllerId == 'vitest'" } ], "testing/item/gutter": [ { "command": "vitest.openTraceView", "when": "controllerId == 'vitest' && testId in vitest.traceViewTests", "group": "vitest" }, { "command": "vitest.updateSnapshot", "when": "controllerId == 'vitest'" }, { "command": "vitest.copyTestItemErrors", "when": "controllerId == 'vitest'" }, { "command": "vitest.toggleContinuousRun", "when": "controllerId == 'vitest'" } ] }, "configuration": { "title": "Vitest", "properties": { "vitest.filesWatcherInclude": { "markdownDescription": "The glob pattern to watch for file changes.", "type": "string", "default": "**/*", "scope": "resource" }, "vitest.vitestPackagePath": { "markdownDescription": "The path to the `package.json` file of Vitest executable (it's usually inside `node_modules`) in case the extension cannot find it.", "type": "string", "scope": "resource" }, "vitest.nodeExecutable": { "markdownDescription": "The path to the Node.js executable. If not assigned, Vitest just passes down `'node'` to `child_process.spawn`. This is applied only when `vitest.shellType` is `child_process` (the default).", "type": "string", "scope": "window" }, "vitest.nodeExecArgs": { "description": "The arguments to pass to the Node.js executable. This is applied only when `vitest.shellType` is `child_process` (the default).", "type": "array", "scope": "resource" }, "vitest.workspaceConfig": { "markdownDescription": "The path to the Vitest [workspace configuration file](https://vitest.dev/guide/workspace). The extension supports only a single file per VSCode workspace.", "type": "string", "scope": "window" }, "vitest.rootConfig": { "markdownDescription": "The path to the Vitest [root configuration file](https://vitest.dev/config/). The extension supports only a single root file per VSCode workspace. If you have several Vitest configs, consider using a [Vitest workspace](https://vitest.dev/guide/workspace) instead for better performance.", "type": "string", "scope": "window" }, "vitest.ignoreWorkspace": { "description": "Ignore workspace files resolution.", "type": "boolean", "default": false, "scope": "window" }, "vitest.configSearchPatternInclude": { "markdownDescription": "A VSCode [glob pattern](https://code.visualstudio.com/docs/editor/glob-patterns) to include files from the search for Vitest config files. This pattern affects only regular config files.", "type": "string", "default": "**/*{vite,vitest}*.config*.{ts,js,mjs,cjs,cts,mts}", "scope": "window" }, "vitest.configSearchPatternExclude": { "markdownDescription": "A VSCode [glob pattern](https://code.visualstudio.com/docs/editor/glob-patterns) to exclude files from the search for Vitest config files. This pattern affects both workspace and regular config files.", "type": "string", "default": "{**/node_modules/**,**/vendor/**,**/.*/**,**/*.d.ts}", "scope": "window" }, "vitest.debuggerAddress": { "description": "TCP/IP address of process to be debugged. Default: localhost", "type": "string", "scope": "window" }, "vitest.debuggerPort": { "description": "Port that the debugger will be attached to. By default uses 9229 or tries to find a free port if it's not available.", "type": "string", "scope": "window" }, "vitest.disableWorkspaceWarning": { "markdownDescription": "Disable a warning about too many config files that recommends creating a single `vitest.workspace.js` file.", "type": "boolean", "default": false, "scope": "resource" }, "vitest.debugExclude": { "markdownDescription": "Automatically skip files covered by these glob patterns.", "type": "array", "default": [ "<node_internals>/**" ], "scope": "resource" }, "vitest.debugOutFiles": { "markdownDescription": "If source maps are enabled, these glob patterns specify the generated JavaScript files.", "type": "array", "scope": "resource" }, "vitest.debugNodeEnv": { "markdownDescription": "The env passed to runner process in addition to `process.env` and `vitest.nodeEnv` when debugging tests", "type": [ "object", "null" ], "default": null, "scope": "window" }, "vitest.nodeEnv": { "markdownDescription": "The env passed to runner process in addition to `process.env`", "type": [ "object", "null" ], "default": null, "scope": "window" }, "vitest.logLevel": { "description": "The log level of the Vitest extension.", "type": "string", "enum": [ "info", "debug", "verbose" ], "default": "verbose", "scope": "resource" }, "vitest.shellType": { "markdownDescription": "The method the extension uses to spawn a long-running Vitest process. This is particularly useful if you are using a custom shell script to set up the environment. When using the `terminal` shell type, the websocket connection will be established.", "type": "string", "enum": [ "terminal", "child_process" ], "default": "child_process", "scope": "resource" }, "vitest.terminalShellPath": { "markdownDescription": "The path to the shell executable. This is applied only when `vitest.shellType` is `terminal`.", "type": "string", "scope": "resource" }, "vitest.terminalShellArgs": { "markdownDescription": "The arguments to pass to the shell executable. This is applied only when `vitest.shellType` is `terminal`.", "type": "array", "scope": "resource" }, "vitest.cliArguments": { "markdownDescription": "Additional arguments to pass to the Vitest CLI. Note that some arguments will be ignored: `watch`, `reporter`, `api`, and `ui`. Example: `--mode=staging`.", "type": "string", "scope": "resource" }, "vitest.applyDiagnostic": { "description": "Show a squiggly line where the error was thrown. This also enables the error count in the File Tab.", "type": "boolean", "default": true, "scope": "resource" }, "vitest.showImportsDuration": { "description": "Show how long it took to import the module during the last test run. If multiple isolated tests imported the module, the times will be aggregated.", "type": "boolean", "default": true, "scope": "resource" }, "vitest.showInlineConsoleLog": { "description": "Show inline console.log messages in the editor. When disabled, console logs will still appear in the test output but not inline next to the code.", "type": "boolean", "default": true, "scope": "resource" }, "vitest.forceCancelTimeout": { "markdownDescription": "When the 'Stop' button is clicked, the extension tries to stop tests gracefully so they don't keep any hanging processes. By default, if tests didn't finish in 1 second, the extension will kill any Vitest process which may keep your test's 'child_process' alive. You can configure the timeout with this option, but consider using [`signal`](https://vitest.dev/guide/test-context#signal) API inside of your tests instead.", "type": "number", "default": 1000, "scope": "resource" }, "vitest.runtime": { "description": "Which runtime to use by default.", "type": "string", "default": "auto", "enum": [ "auto", "node", "deno" ] }, "vitest.watchOnStartup": { "description": "Watch every test file after the extension is loaded. This is the same as enabling continuous run.", "type": "boolean", "default": false } } } }, "activationEvents": [ "workspaceContains:**/*vitest.{workspace,projects}*.{ts,js,mjs,cjs,cts,mts,json}", "workspaceContains:**/*{vite,vitest}*.config*.{ts,js,mjs,cjs,cts,mts}", "workspaceContains:node_modules/.bin/vitest", "workspaceContains:node_modules/.bin/vp" ], "icon": "img/icon.png", "engines": { "vscode": "^1.88.0" }, "packageManager": "pnpm@10.34.5", "pricing": "Free"}