Convert yml to describe()
and it.todo()
/ it.skip()
test skeletons.
- Select yml,
- Open command palette (ctrl/cmd + shift + P)
- Type in
YML to test: Selection to Test skeleton
and hit enter
// Default settings
{
"ymltotest.testType": "jest" // Available: ["jest", "mocha"]`
"ymltotest.autoReference": true
}
- Available Test Type Frameworks are
["jest", "mocha"]
- For
jest
, statement will beit.todo('test description')
- For
mocha
, statement will beit.skip('test description')
- Enable Automatic referencing and force the use of string.
- If enabled, for a pattern
Given a FooBar
, it will converted todescribe(FooBar.name, ()=> { ... })
; - If disabled, it will keep the string as it is
describe('Given a FooBar', ()=> { ... })
;