Revert "Merge from vscode merge-base (#22769)" (#22779)

This reverts commit 6bd0a17d3c.
This commit is contained in:
Karl Burtram
2023-04-18 21:44:05 -07:00
committed by GitHub
parent 6bd0a17d3c
commit 47a1745180
2389 changed files with 42588 additions and 92170 deletions

View File

@@ -96,7 +96,7 @@ function main() {
nodeRequire: require,
nodeMain: __filename,
baseUrl: fileUriFromPath(src, { isWindows: process.platform === 'win32' }),
'sql': `../${out}/sql`, // {{SQL CARBON EDIT}}
'sql': `../${out}/sql`, // {{SQL CARBON EDIT}}
catchError: true,
nodeModules: [ // {{SQL CARBON EDIT}}
'@angular/common',
@@ -168,7 +168,7 @@ function main() {
glob(TEST_GLOB, { cwd: src }, function (err, files) {
/** @type {string[]} */
const modules = [];
for (const file of files) {
for (let file of files) {
if (!excludeGlobs.some(excludeGlob => minimatch(file, excludeGlob))) {
modules.push(file.replace(/\.js$/, ''));
}
@@ -196,9 +196,9 @@ function main() {
}
// report failing test for every unexpected error during any of the tests
const unexpectedErrors = [];
let unexpectedErrors = [];
mocha.suite('Errors', function () {
test.skip('should not have unexpected errors in tests', function () { // {{SQL CARBON TODO}} Reinstate test - failing due to "SDK is not initialized"
test('should not have unexpected errors in tests', function () {
if (unexpectedErrors.length) {
unexpectedErrors.forEach(function (stack) {
console.error('');