Skip to content

Commit

Permalink
Add Test Configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinGrote committed Jan 18, 2024
1 parent 197b6f3 commit cbe8b7b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 207 deletions.
13 changes: 13 additions & 0 deletions .vscode-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// .vscode-test.js
const { defineConfig } = require("@vscode/test-cli");

module.exports = defineConfig({
files: "out/test/**/*.test.js",
launchArgs: ["--profile-temp"],
workspaceFolder: "test/TestEnvironment.code-workspace",
mocha: {
ui: "bdd",
timeout: 600000, //10 minutes long to allow for debugging
slow: 2000,
},
});
121 changes: 0 additions & 121 deletions test/runTests.ts

This file was deleted.

80 changes: 0 additions & 80 deletions test/runTestsInner.ts

This file was deleted.

9 changes: 3 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@
"module": "commonjs",
"outDir": "out",
"target": "ES2022",
"lib": [
"ES2022",
"DOM"
],
"lib": ["ES2022"],
"sourceMap": true,
"rootDir": ".",
"strict": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
Expand All @@ -19,7 +15,8 @@
"noUnusedParameters": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"useUnknownInCatchVariables": true
"useUnknownInCatchVariables": true,
"types": ["node", "mocha", "sinon"]
},
"include": [ "src", "test" ],
"exclude": [ "node_modules/@ungap/structured-clone" ]
Expand Down

0 comments on commit cbe8b7b

Please sign in to comment.