You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support extension settings ('pretest', 'packageManager', 'testCommand', 'extraArguments', and 'executableOptions') (#11)
* Support extension settings ('pretest', 'packageManager', 'testCommand', 'extraArguments', and 'executableOptions')
Co-authored-by: Raz Luvaton <16746759+rluvaton@users.noreply.github.com>
|`vscode-vitest.preTest`| Any command(s) to run before test starts |`["npm run script1", "npm run script2"` (will run in the given order. If command(s) fail, tests will not run) |[]|
15
+
|`vscode-vitest.postTest`| Any command(s) to run after test finishes |`["npm run clean1", "npm run clean2"` (will run in the given order) |[]|
|`vscode-vitest.testCommand`| Define an alternative vitest command |`test` (e.g. for CRA, package.json `test` script, or similar abstractions) |`vitest`|
18
+
|`vscode-vitest.extraArguments`| Any additional vitest arguments |`--silent=true --maxWorkers=2`|`""`|
19
+
|`vscode-vitest.executableOptions`| Executable option to show |`{"debug": false, "run": false}` (will only display `watch`) |`{"debug": true,"run": true, "run": true}`|
20
+
21
+
22
+
### Example Settings:
23
+
```
24
+
"vscode-vitest.preTest": ["npm run script1"],
25
+
"vscode-vitest.postTest": ["npm run cleanAfterTest"],
0 commit comments