Add some new test snippets
This commit is contained in:
parent
a2cc7f8e18
commit
59d67db585
2 changed files with 28 additions and 6 deletions
|
@ -10,13 +10,14 @@
|
|||
"features": {
|
||||
"edit_prediction_provider": "zed"
|
||||
},
|
||||
"auto_fold_dirs": false,
|
||||
"edit_predictions": {
|
||||
"mode": "subtle"
|
||||
},
|
||||
"agent": {
|
||||
"default_model": {
|
||||
"provider": "anthropic",
|
||||
"model": "claude-3-7-sonnet-latest"
|
||||
"model": "claude-sonnet-4-latest"
|
||||
},
|
||||
"version": "2"
|
||||
},
|
||||
|
|
|
@ -1,4 +1,30 @@
|
|||
{
|
||||
"tests": {
|
||||
"prefix": "tests",
|
||||
"description": "Test suite",
|
||||
"body": ["describe('${1:Function name}', () => {", " $0", "})"]
|
||||
},
|
||||
"utesth": {
|
||||
"prefix": "utesth",
|
||||
"description": "Unit test header",
|
||||
"body": [
|
||||
"/* eslint-disable @typescript-eslint/no-unused-expressions */",
|
||||
"import 'reflect-metadata'",
|
||||
"",
|
||||
"import { describe, it } from 'node:test'",
|
||||
"",
|
||||
"import { expect, use } from 'chai'",
|
||||
"import chaiAsPromised from 'chai-as-promised'",
|
||||
"use(chaiAsPromised)",
|
||||
"",
|
||||
"$0"
|
||||
]
|
||||
},
|
||||
"utest": {
|
||||
"prefix": "utest",
|
||||
"description": "Unit test case",
|
||||
"body": ["it('${2:Should...}', async () => {", " $0", "})"]
|
||||
},
|
||||
"itesth": {
|
||||
"prefix": "itesth",
|
||||
"description": "Integration test header",
|
||||
|
@ -18,11 +44,6 @@
|
|||
"$0"
|
||||
]
|
||||
},
|
||||
"itests": {
|
||||
"prefix": "itests",
|
||||
"description": "Integration test suite",
|
||||
"body": ["describe('${1:Function name}', () => {", " $0", "})"]
|
||||
},
|
||||
"itest": {
|
||||
"prefix": "itest",
|
||||
"description": "Integration test case",
|
||||
|
|
Loading…
Add table
Reference in a new issue