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

YML to Test

Jimish

|
6,214 installs
| (0) | Free
Convert yml to `describe-it` test skeletons
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ymltotest

Convert yml to describe() and it.todo() / it.skip() test skeletons.

Instructions

  1. Select yml,
  2. Open command palette (ctrl/cmd + shift + P)
  3. Type in YML to test: Selection to Test skeleton and hit enter

Demo

demo

Extension Settings

// Default settings
{
    "ymltotest.testType": "jest" // Available: ["jest", "mocha"]`
    "ymltotest.autoReference": true 
}

ymltotest.testType:

  • Available Test Type Frameworks are ["jest", "mocha"]
  • For jest, statement will be it.todo('test description')
  • For mocha, statement will be it.skip('test description')

ymltotest.autoReference:

  • Enable Automatic referencing and force the use of string.
  • If enabled, for a pattern Given a FooBar, it will converted to describe(FooBar.name, ()=> { ... });
  • If disabled, it will keep the string as it is describe('Given a FooBar', ()=> { ... });
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft