Skip to content

longshotlabs/create-test-file

Repository files navigation

Create Test File: A Visual Studio Code (vscode) Extension

Adds a "Create Test File" option to the menu that shows when you right-click a file or folder in VSCode.

Features

When you right-click a .js or .jsx or .ts or .tsx or .mjs file and choose "Create Test File", it will create a matching .test.<extension> file in the same folder.

When you right-click a folder containing such files and choose "Create Test File", it will create a matching .test.<extension> file for every file in that folder.

Install

Clone this repo, change to the created directory, and then:

code --install-extension create-test-file-1.1.0.vsix

Install From Local (if you made changes)

npm install -g vsce
vsce package
code --install-extension create-test-file-1.1.0.vsix

Requirements

None

Extension Settings

None

Questions

Can I configure it to use .tests. or .spec. or __?

No

About

VSCode extension: Adds the option to create a test file for a JavaScript file by right-clicking on it

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published