extensions icon indicating copy to clipboard operation
extensions copied to clipboard

Add Vitest snippets extension

Open jwerre opened this issue 1 month ago • 4 comments

This pull request adds a new snippet-only extension for Vitest, the Vite-native test framework.

Given Vitest's popularity in the JavaScript and TypeScript communities, these snippets are intended to help developers write tests more quickly and efficiently.

This PR includes:

The extension repository (https://github.com/jwerre/vitest-snippets) added as a submodule under extensions/.

A new entry for [vitest-snippets] in the root extensions.toml file, pointing to the new submodule.

The extension provides snippets for common Vitest globals and functions, such as describe, it, test, expect, vi.fn, vi.mock, and more.

Please let me know if any changes are required for this to be merged.

jwerre avatar Nov 07 '25 23:11 jwerre

We require contributors to sign our Contributor License Agreement, and we don't have @jwerre on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

cla-bot[bot] avatar Nov 07 '25 23:11 cla-bot[bot]

@cla-bot check

jwerre avatar Nov 07 '25 23:11 jwerre

The cla-bot has been summoned, and re-checked this pull request!

cla-bot[bot] avatar Nov 07 '25 23:11 cla-bot[bot]

Please fix the CI errors, you can follow https://zed.dev/docs/extensions/developing-extensions for this. Also, please make sure that the extension works locally. Thanks!

@MrSubidubi This should be ready to go now

jwerre avatar Nov 17 '25 17:11 jwerre