Skip to content

Commit e94ea0b

Browse files
committed
chore(test): clean up test setup and configuration
- Remove orphaned deps (chai, mocha, @types/mocha, @types/chai, @types/glob, @vscode/test-electron) left after integration tests were deleted - Create vitest.config.ts and simplify test script (no more inline CLI flags) - Remove redundant globalThis.__WEB__ setup in shared.ts (already set by vitest environment)
1 parent e618740 commit e94ea0b

File tree

4 files changed

+12
-369
lines changed

4 files changed

+12
-369
lines changed

package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@
135135
"build-plugin:npm": "tsc -p typescript/tsconfig.npm.json",
136136
"lint": "eslint {src/**,typescript/src/**}",
137137
"format": "prettier --write '{src,typescript}/**/*.ts' --ignore-path .gitignore",
138-
"test": "pnpm test-plugin --run",
139-
"test-plugin": "vitest --globals --dir typescript/test/ --environment ts-plugin",
138+
"test": "vitest",
140139
"postinstall": "patch-package && tsm ./typescript/scripts/patchModules.ts"
141140
},
142141
"devDependencies": {
@@ -179,16 +178,11 @@
179178
]
180179
},
181180
"dependencies": {
182-
"@types/chai": "^4.3.3",
183-
"@types/glob": "^8.0.0",
184181
"@types/lodash": "^4.14.182",
185-
"@types/mocha": "^9.1.1",
186182
"@types/pluralize": "^0.0.29",
187183
"@vscode/emmet-helper": "^2.8.4",
188-
"@vscode/test-electron": "^2.1.5",
189184
"@zardoy/utils": "^0.0.9",
190185
"@zardoy/vscode-utils": "^0.0.52",
191-
"chai": "^4.3.6",
192186
"change-case": "^4.1.2",
193187
"delay": "^5.0.0",
194188
"escape-string-regexp": "^5.0.0",
@@ -198,7 +192,6 @@
198192
"lodash": "^4.17.21",
199193
"lodash.get": "^4.4.2",
200194
"lodash.throttle": "^4.1.1",
201-
"mocha": "^10.0.0",
202195
"path-browserify": "^1.0.1",
203196
"pluralize": "github:plurals/pluralize#36f03cd2d573fa6d23e12e1529fa4627e2af74b4",
204197
"rambda": "^7.2.1",

0 commit comments

Comments
 (0)