✨ Add VS Code node:test debugging and runner config
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.
This commit is contained in:
1 parent
62a5599ab3
commit
2ff67801e0
5 files changed
+30
-2
No files matched your search
Vendored
+10
@@ -1,4 +1,14 @@
|
||||
{
|
||||
"nodejs-testing.extensions": [
|
||||
{
|
||||
"extensions": ["mjs", "cjs", "js"],
|
||||
"parameters": []
|
||||
},
|
||||
{
|
||||
"extensions": ["ts"],
|
||||
"parameters": ["--strip-types"]
|
||||
}
|
||||
],
|
||||
"[typescript]": {
|
||||
"editor.defaultFormatter": "oxc.oxc-vscode",
|
||||
"editor.formatOnSave": true
|
||||
|
||||
Reference in new issue
Block a user