Skip to content
| Marketplace
Sign in
Visual Studio Code>Testing>Spec UtilsNew to Visual Studio Code? Get it now.
Spec Utils

Spec Utils

Douglas Rocha

|
1,633 installs
| (2) | Free
Utilities to help with spec files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

spec-utils

This extension adds a set of commands to aid the work with test files.

Suport

Javascript / Typescript files:

Jest, Cypress and mocha identifiers, .ts, .js, .tsx, .jsx file extensions.

Ruby:

RSpec identifies, .rb file extension.

Commands

switchSpec

Switch between the source and test file.

switchSpec

copySpecPath

Copy to the clipboard the relative path of the test file, works from both source and test file.

copySpecPath

toggleFixedSpec

Toggle the closest test block to 'fixed' or 'only' state acording to the current test framework.

toggleFixedSpec

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