Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Better TestsNew to Visual Studio Code? Get it now.
Better Tests

Better Tests

samuelgja

|
371 installs
| (1) | Free
Better tests experience for your typescript / javascript projects!
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Better tests for Visual Studio Code

Small extension to provide better user experience for testing your typescript / javascript code!

Visual Studio Marketplace Version

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:

alt text

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"
  }
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft