Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Hardhat Test SnippetsNew to Visual Studio Code? Get it now.
Hardhat Test Snippets

Hardhat Test Snippets

Maratib Ali Khan

|
3,131 installs
| (0) | Free
Hardhat Test Snippets
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Hardhat Test Snippets

Syntax Description
ts-describe-load New Describe with loadFixture
ts-describe New Describe
ts-it New It
ts-loadFixture LoadFixture const { SomeObj } = await loadFixture(initFixture)"

Pre Requisites

Install the following extension in case if you already not.
Mocha Test Explorer

In VS Code settings file add the following:-

"mochaExplorer.files": "test/**/*.{js,ts}",
"mochaExplorer.require": "hardhat/register",

To Enable Test explorer
Cmd+Shift+P -> Moch Test Explorer: Enable for a workspace folder

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