Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rouanw/vscode-strip-only
Strips .only from your open test file in VS Code
https://github.com/rouanw/vscode-strip-only
mocha strip visual-studio vscode vscode-extension
Last synced: 4 days ago
JSON representation
Strips .only from your open test file in VS Code
- Host: GitHub
- URL: https://github.com/rouanw/vscode-strip-only
- Owner: rouanw
- Created: 2018-06-07T13:01:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-15T09:40:32.000Z (almost 2 years ago)
- Last Synced: 2023-03-28T21:20:31.573Z (over 1 year ago)
- Topics: mocha, strip, visual-studio, vscode, vscode-extension
- Language: TypeScript
- Homepage:
- Size: 222 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# strip-only
Ready to commit your code?
`strip-only` is a [Visual Studio Code](https://code.visualstudio.com/) extension that removes exclusive tests by stripping `.only` from your current file. Tested with [Mocha](https://mochajs.org/).
Run it and it will change all instances of `it.only` and `describe.only` to `it` and `describe` respectively. (It also works for mocha's `TDD` interface methods - `suite` and `test`.)
![strip-only](https://user-images.githubusercontent.com/2362668/41152450-e81811f8-6b13-11e8-893d-e22f9321f724.gif)
## Get started
Install the extension, [via the UI](https://code.visualstudio.com/docs/editor/extension-gallery) or:
```sh
code --install-extension rouanw.strip-only
```The `Strip .only` command will now be available in the command palette.
You can add a keyboard shortcut, in [`keybindings.json`](https://code.visualstudio.com/docs/getstarted/tips-and-tricks#_customize-your-keyboard-shortcuts). For example:
```js
[
// ... other shortcuts
{
"key": "ctrl+shift+.",
"command": "extension.stripOnly"
}
]
```## Find it on the Visual Studio Marketplace
https://marketplace.visualstudio.com/items?itemName=rouanw.strip-only
## Licence
MIT