diff --git a/.vscode/launch.json b/.vscode/launch.json index db44e3588..aa2e61508 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -8,7 +8,9 @@ "address": "localhost", "port": 9333, "sourceMaps": true, - "trace": true + "trace": true, + // Needed for vite based project. + "webRoot": "${workspaceFolder}/extension" } ] } diff --git a/web-test-runner.config.js b/web-test-runner.config.js index c358502e0..58c9a04b8 100644 --- a/web-test-runner.config.js +++ b/web-test-runner.config.js @@ -127,7 +127,9 @@ if (isDocker) { const defaultConfig = { rootDir: 'extension', coverageConfig: { - exclude: ['**/*_test.ts*'], + // Including this excludes tests and random node_module files from the report. + // Excluding doesn't appear to do anything with vite. + include: ['**/extension/*.ts'], }, browsers: [ @@ -155,7 +157,7 @@ const defaultConfig = { testRunnerHtml: (testFramework) => ` - <-- vite doesn't add global by default so add it here. --> +