Skip to content

Commit

Permalink
chore: Fix VSC single file debug
Browse files Browse the repository at this point in the history
  • Loading branch information
WoH committed Jul 25, 2023
1 parent f3bd873 commit 309a686
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,31 @@
"type": "node",
"request": "launch",
"name": "Mocha TS Tests",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"cwd": "${workspaceRoot}/tests",
"env": {
"NODE_ENV": "tsoa_test"
},
"args": ["'**/*spec.ts'", "--debug", "--debug-brk", "--require", "ts-node/register", "--require", "tsconfig-paths/register", "--colors"],
"args": ["**/*.spec.ts"],
"runtimeArgs": ["--inspect", "--inspect-brk"],
"preLaunchTask": "prepareFiles",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"protocol": "inspector"
"internalConsoleOptions": "neverOpen"
},
{
"type": "node",
"request": "launch",
"name": "Mocha TS Tests: Current File",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"cwd": "${workspaceRoot}/tests",
"env": {
"NODE_ENV": "tsoa_test"
},
"args": ["${file}", "--debug", "--debug-brk", "--require", "ts-node/register", "--require", "tsconfig-paths/register", "--colors"],
"args": ["${file}", "--timeout", "0"],
"runtimeArgs": ["--inspect", "--inspect-brk"],
"preLaunchTask": "prepareFiles",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"protocol": "inspector"
"internalConsoleOptions": "neverOpen"
},
{
"name": "Generate",
Expand Down
4 changes: 2 additions & 2 deletions tests/.mocharc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"extension": ["ts"],
"spec": ["**/*.spec.ts"],
"timeout": "5000",
"exclude": ["esm/**/*"],
"require": ["ts-node/register", "tsconfig-paths/register"],
"exit": true
"exit": true,
"colors": true
}
2 changes: 1 addition & 1 deletion tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"clean": "rimraf --glob dist fixtures/*/routes.ts fixtures/*/customRoutes.ts fixtures/*/custom-route-generator/routes/*",
"prepare-test": "cross-env NODE_ENV=tsoa_test ts-node --require=tsconfig-paths/register ./prepare.ts",
"pretest": "yarn clean && yarn prepare-test && yarn typecheck",
"test": "cross-env NODE_ENV=tsoa_test mocha",
"test": "cross-env NODE_ENV=tsoa_test mocha \"**/*.spec.ts\"",
"typecheck": "tsc"
},
"author": "Luke Autry <lukeautry@gmail.com> (http://www.lukeautry.com)",
Expand Down

0 comments on commit 309a686

Please sign in to comment.