Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>vs-code-esmockNew to Visual Studio Code? Get it now.
vs-code-esmock

vs-code-esmock

vs-code-esmock

|
4 installs
| (0) | Free
esmock test scafolding
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vs-code-esmock README

This extension helps you to start a new tets suit from scratch with esmock

⚠️ Important: Result test works with Node's test runner, that means you should work with Node version >= 18.0.0

Usage

  1. Create an empty file in which test is going to be added
  2. Open the VS Code command palette with Ctrl+Shift+P, and run init test

Commands

The extension provides one command:

  • init test: allows to select which file is going to be tested and returns on the empty open file the a dummy test with all mocked imports

    This extension only works with .js or .ts files

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft