Skip to content

Commit 6e0ed55

Browse files
authored
Merge pull request #9 from hankei6km:topic/vitest
chore: Setup for vitest
2 parents 42e79ee + 61280d2 commit 6e0ed55

File tree

6 files changed

+2207
-5039
lines changed

6 files changed

+2207
-5039
lines changed

.vscode/launch.json

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,20 @@
11
{
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5-
"version": "0.2.0",
6-
"configurations": [
7-
{
8-
"name": "unit test",
9-
"request": "launch",
10-
"runtimeArgs": [
11-
"run-script",
12-
"test",
13-
"---",
14-
"--runInBand"
15-
],
16-
"runtimeExecutable": "npm",
17-
"skipFiles": [
18-
"<node_internals>/**"
19-
],
20-
"type": "pwa-node",
21-
"envFile": "${workspaceFolder}/.env.debug",
22-
"console": "integratedTerminal",
23-
"internalConsoleOptions": "neverOpen"
24-
}
25-
]
26-
}
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
// https://vitest.dev/guide/debugging.html#vscode
9+
"type": "node",
10+
"request": "launch",
11+
"name": "Debug Current Test File",
12+
"autoAttachChildProcesses": true,
13+
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
14+
"program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
15+
"args": ["run", "${relativeFile}"],
16+
"smartStep": true,
17+
"console": "integratedTerminal"
18+
}
19+
]
20+
}

jest.config.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)