Better tests for Visual Studio Code
Small extension to provide better user experience for testing your typescript
/ javascript
code!
Extension provide better experience to run tests in your typescript / javascript projects directly via opened file or via vscode command.
Working also in monorepos, looking for the current package.json
and running tests in the right context.
Example of usage:
Configuration
.vscode/settings.json
You can use the following configurations to customize the behavior of the Better Tests extension.
{
"better.test.filePattern": {
"type": "string",
"default": "**/*.{test,spec}.{js,ts,tsx,jsx}",
"description": "Glob pattern to match test files (e.g., **/*.test.{js,ts,tsx,jsx})"
},
"better.test.customFlag": {
"type": "string",
"default": "",
"description": "Custom flag added to the end of test command"
},
"better.test.customScript": {
"type": "string",
"default": "bun test",
"description": "Custom script to use instead of `bun test`, for example script from `package.json`"
},
"better.test.watchFlag": {
"type": "string",
"default": "--watch",
"description": "Custom flag for the watch mode. Default is --watch"
}
}