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": {
|
"features": {
|
||||||
"edit_prediction_provider": "zed"
|
"edit_prediction_provider": "zed"
|
||||||
},
|
},
|
||||||
|
"auto_fold_dirs": false,
|
||||||
"edit_predictions": {
|
"edit_predictions": {
|
||||||
"mode": "subtle"
|
"mode": "subtle"
|
||||||
},
|
},
|
||||||
"agent": {
|
"agent": {
|
||||||
"default_model": {
|
"default_model": {
|
||||||
"provider": "anthropic",
|
"provider": "anthropic",
|
||||||
"model": "claude-3-7-sonnet-latest"
|
"model": "claude-sonnet-4-latest"
|
||||||
},
|
},
|
||||||
"version": "2"
|
"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": {
|
"itesth": {
|
||||||
"prefix": "itesth",
|
"prefix": "itesth",
|
||||||
"description": "Integration test header",
|
"description": "Integration test header",
|
||||||
|
@ -18,11 +44,6 @@
|
||||||
"$0"
|
"$0"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"itests": {
|
|
||||||
"prefix": "itests",
|
|
||||||
"description": "Integration test suite",
|
|
||||||
"body": ["describe('${1:Function name}', () => {", " $0", "})"]
|
|
||||||
},
|
|
||||||
"itest": {
|
"itest": {
|
||||||
"prefix": "itest",
|
"prefix": "itest",
|
||||||
"description": "Integration test case",
|
"description": "Integration test case",
|
||||||
|
|
Loading…
Add table
Reference in a new issue