Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>jestjenNew to Visual Studio Code? Get it now.
jestjen

jestjen

aurospire

|
28 installs
| (0) | Free
A VSCode extension to generate Jest test files for JavaScript and TypeScript source files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JestJen

Overview

JestJen is a Visual Studio Code extension that simplifies the process of generating Jest test files for JavaScript and TypeScript source files. With JestJen, you can quickly create a corresponding test file for any .js or .ts file in your project with a single command or a right-click context menu option.

Features

  • Generate Jest Test Files: Automatically create a Jest test file for any selected .js or .ts file in your project.
  • Context Menu Integration: Right-click on a file in the explorer to generate a test file.
  • Keyboard Shortcut: Use the Shift+Alt+T shortcut to generate a test file for the currently open file.
  • Conditional Generation: Ensures that test files are only generated for non-test .js and .ts files.

Usage

  1. Right-Click Context Menu:

    • Right-click on any .js or .ts file in the explorer.
    • Select "Create Jest Test File" from the context menu.
  2. Keyboard Shortcut:

    • Open any .js or .ts file.
    • Press Shift+Alt+T to generate a corresponding test file.

The generated test file will be placed in a test directory, maintaining the relative path structure of the source file. For example:

  • ./src/util/data/Column.ts -> ./test/util/data/Column.test.ts
  • ./src/util/data/Column.js -> ./test/util/data/Column.test.js

Installation

  1. From VS Code Marketplace:

    • Go to the VS Code Marketplace.
    • Search for "JestJen".
    • Click "Install".
  2. From VSIX File:

    • Download the latest .vsix file from the releases page.
    • In VS Code, go to the Extensions view (Ctrl+Shift+X).
    • Click on the ... menu and select Install from VSIX....
    • Choose the downloaded .vsix file.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft