launch.json: 'Debug current test file' F5 config running node --test --strip-types on the active file. settings.json: register .ts with the connor4312.nodejs-testing extension via nodejs-testing.extensions, using --strip-types (the repo pins node >=26 with native type stripping) instead of tsx, so the extension discovers src/*.test.ts and shows Run/Debug lenses above test() calls in the native Testing UI. extensions.json: recommend connor4312.nodejs-testing; cspell.json: allow 'connor' for the extension id. .gitignore: un-ignore .vscode/launch.json so the config is shared.
51 lines
1.3 KiB
JSON
51 lines
1.3 KiB
JSON
{
|
|
"nodejs-testing.extensions": [
|
|
{
|
|
"extensions": ["mjs", "cjs", "js"],
|
|
"parameters": []
|
|
},
|
|
{
|
|
"extensions": ["ts"],
|
|
"parameters": ["--strip-types"]
|
|
}
|
|
],
|
|
"[typescript]": {
|
|
"editor.defaultFormatter": "oxc.oxc-vscode",
|
|
"editor.formatOnSave": true
|
|
},
|
|
"[typescriptreact]": {
|
|
"editor.defaultFormatter": "oxc.oxc-vscode",
|
|
"editor.formatOnSave": true
|
|
},
|
|
"[javascript]": {
|
|
"editor.defaultFormatter": "oxc.oxc-vscode",
|
|
"editor.formatOnSave": true
|
|
},
|
|
"[javascriptreact]": {
|
|
"editor.defaultFormatter": "oxc.oxc-vscode",
|
|
"editor.formatOnSave": true
|
|
},
|
|
"[json]": {
|
|
"editor.defaultFormatter": "oxc.oxc-vscode",
|
|
"editor.formatOnSave": true
|
|
},
|
|
"[jsonc]": {
|
|
"editor.defaultFormatter": "oxc.oxc-vscode",
|
|
"editor.formatOnSave": true
|
|
},
|
|
"[markdown]": {
|
|
"editor.defaultFormatter": "oxc.oxc-vscode",
|
|
"editor.formatOnSave": true
|
|
},
|
|
"[mdx]": {
|
|
"editor.defaultFormatter": "oxc.oxc-vscode",
|
|
"editor.formatOnSave": true
|
|
},
|
|
"[yaml]": {
|
|
"editor.defaultFormatter": "oxc.oxc-vscode",
|
|
"editor.formatOnSave": true
|
|
},
|
|
"editor.defaultFormatter": "oxc.oxc-vscode",
|
|
"editor.formatOnSave": true
|
|
}
|