Skip to content

Commit

Permalink
Add client tests
Browse files Browse the repository at this point in the history
More work on client tests

Still trying to get autocomplete to work
  • Loading branch information
japhib committed Sep 17, 2023
1 parent c82df21 commit 5c86c47
Show file tree
Hide file tree
Showing 9 changed files with 1,265 additions and 508 deletions.
45 changes: 39 additions & 6 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,33 @@
"args": [
"--extensionDevelopmentPath=${workspaceRoot}"
],
"outFiles": ["${workspaceRoot}/client/out/**/*.js"],
"outFiles": [
"${workspaceRoot}/client/out/**/*.js"
],
"preLaunchTask": {
"type": "npm",
"script": "compile-nomin"
}
},
{
"name": "Extension Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/client/out/test/suite/index"
],
"outFiles": [
"${workspaceFolder}/client/out/test/**/*.js"
],
"preLaunchTask": {
"type": "npm",
"script": "compile",
"path": "client"
}
},
{
"type": "node",
"request": "attach",
Expand All @@ -26,7 +47,9 @@
"type": "npm",
"script": "compile"
},
"outFiles": ["${workspaceRoot}/server/out/**/*.js"]
"outFiles": [
"${workspaceRoot}/server/out/**/*.js"
]
},
{
"name": "Language Server E2E Test",
Expand All @@ -38,15 +61,22 @@
"--extensionTestsPath=${workspaceRoot}/client/out/test/index",
"${workspaceRoot}/client/testFixture"
],
"outFiles": ["${workspaceRoot}/client/out/test/**/*.js"]
"outFiles": [
"${workspaceRoot}/client/out/test/**/*.js"
]
},
{
"name": "npm test server",
"type": "node",
"request": "launch",
"skipFiles": ["<node_internals>/**", "node_modules/mocha/**"],
"skipFiles": [
"<node_internals>/**",
"node_modules/mocha/**"
],
"program": "node_modules/mocha/bin/mocha",
"args": ["${workspaceFolder}/server/**/*.test.js"],
"args": [
"${workspaceFolder}/server/**/*.test.js"
],
"outFiles": [
"${workspaceFolder}/**/*.js"
],
Expand All @@ -59,7 +89,10 @@
"compounds": [
{
"name": "Client + Server",
"configurations": ["Launch Client", "Attach to Server"]
"configurations": [
"Launch Client",
"Attach to Server"
]
}
]
}
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"editor.insertSpaces": false,
"editor.tabSize": 2,
"typescript.tsc.autoDetect": "off",
"typescript.preferences.quoteStyle": "single",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
}
Loading

0 comments on commit 5c86c47

Please sign in to comment.