Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Toggle TestNew to Visual Studio Code? Get it now.
Toggle Test

Toggle Test

kjarmicki

|
114 installs
| (0) | Free
Easily toggle 'only' test mode
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Toggle Test

This is the VS Code extension that allows to switch .only statements from within the test.

it <-> it.only
describe <-> describe.only

Usage

Place your text cursor inside the test and use command Toggle Test: only to toggle. You probably want to bind that command to a keyboard shortcut.

Limitations

As of now, this extension is quite dumb: it's unaware of code structure, ie. doesn't take comments and blocks into account. It simply looks upwards from the cursor for something that resables it or describe block and replaces it.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft