fix unit test set-up and CI workflow (#3154)

* Fix unit test set-up

* run tests on CI

* update failing tests

* Update node

Update the coverage job node version
This commit is contained in:
Tomás Barreiro
2025-04-28 16:30:40 -07:00
committed by GitHub
parent df7f9fcba4
commit b8e2fd669d
5 changed files with 41 additions and 22 deletions
+17
View File
@@ -0,0 +1,17 @@
const Module = require("module")
const originalRequire = Module.prototype.require
/**
* VSCode is not available during unit tests
* @see {@link file://./vscode-mock.ts}
*/
Module.prototype.require = function (path: string) {
if (path === "vscode") {
return require("./vscode-mock")
}
return originalRequire.call(this, path)
}
// Required to have access to String.prototype.toPosix
import "../utils/path"
+1
View File
@@ -0,0 +1 @@
export {}