This extension permits to easily create test boilerplate for given functions.
Find the extension on the Visual Studio Marketplace.
- Trigger the refactor on a function name
- Create test boilerplate for a given function
- Update tests when a test file is already present
You can configure the extension with the following settings:
{
// Prefix for test files, default: 'test'
"testPilot.testFileExtensionPrefix": "spec",
// Add the extension in the import statement, default: false
"testPilot.addExtensionInImport": true,
// Extra imports to add in the new test file, default: []
"testPilot.extraImportsForNewTestFiles": ["import { expect } from 'chai';"]
}
Coded with love by Corentin Thomasset.
Green chemistry icon used in the logo created by Fazrian Zahrawani - Flaticon
Published under the MIT License.