Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samuelgja/better-tests
https://github.com/samuelgja/better-tests
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/samuelgja/better-tests
- Owner: samuelgja
- License: other
- Created: 2024-11-12T06:13:59.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-12T06:44:04.000Z (2 months ago)
- Last Synced: 2024-11-12T07:21:16.963Z (2 months ago)
- Language: TypeScript
- Size: 4.19 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Better tests for Visual Studio Code
Small extension to provide better user experience for testing your `typescript` / `javascript` code!![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/samuelgja.better-tests-experience)
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](https://github.com/samuelgja/better-tests/blob/main/assets/example.png?raw=true )
## Configuration
### `.vscode/settings.json`
You can use the following configurations to customize the behavior of the Better Tests extension.
```jsonc
{
"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"
}
}
```