Skip to content

Commit 3a98f92

Browse files
chore(dev): add config to make debugging with vs code and the orta jest extension… (#1836)
--------- Co-authored-by: Paul D'Ambra <[email protected]>
1 parent 35632fb commit 3a98f92

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
lines changed

.gitignore

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ settings.yml
99
debug.log
1010
*.swp
1111
*.swo
12-
node_modules/*
13-
*.code-workspace
1412
node_modules
15-
.vscode/*
13+
*.code-workspace
1614
.mypy_cache
1715
package-lock.json
1816
.idea

.vscode/launch.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"configurations": [
3+
{
4+
"type": "node",
5+
"name": "vscode-jest-tests.v2",
6+
"request": "launch",
7+
"console": "integratedTerminal",
8+
"internalConsoleOptions": "neverOpen",
9+
"runtimeExecutable": "pnpm",
10+
"cwd": "${workspaceFolder}",
11+
"args": [
12+
"jest",
13+
"-c",
14+
"${workspaceRoot}/jest.config.js",
15+
"--runInBand",
16+
"--watchAll=false",
17+
"--testNamePattern",
18+
"${jest.testNamePattern}",
19+
"--runTestsByPath",
20+
"${jest.testFile}"
21+
]
22+
}
23+
]
24+
}

.vscode/settings.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"jest.runMode": "on-demand",
3+
"jest.rootPath": "src",
4+
"jest.jestCommandLine": "pnpm test:unit"
5+
}

0 commit comments

Comments
 (0)