mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
esm - set type: module top level (#230210)
This commit is contained in:
@@ -5,9 +5,15 @@
|
||||
|
||||
//@ts-check
|
||||
|
||||
const path = require('path');
|
||||
import { createRequire } from 'node:module';
|
||||
import { fileURLToPath } from 'url';
|
||||
import * as path from 'path';
|
||||
import * as os from 'os';
|
||||
|
||||
const require = createRequire(import.meta.url);
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
const { defineConfig } = require('@vscode/test-cli');
|
||||
const os = require('os');
|
||||
|
||||
/**
|
||||
* A list of extension folders who have opted into tests, or configuration objects.
|
||||
@@ -57,7 +63,7 @@ const defaultLaunchArgs = process.env.API_TESTS_EXTRA_ARGS?.split(' ') || [
|
||||
'--disable-telemetry', '--skip-welcome', '--skip-release-notes', `--crash-reporter-directory=${__dirname}/.build/crashes`, `--logsPath=${__dirname}/.build/logs/integration-tests`, '--no-cached-data', '--disable-updates', '--use-inmemory-secretstorage', '--disable-extensions', '--disable-workspace-trust'
|
||||
];
|
||||
|
||||
module.exports = defineConfig(extensions.map(extension => {
|
||||
const config = defineConfig(extensions.map(extension => {
|
||||
/** @type {import('@vscode/test-cli').TestConfiguration} */
|
||||
const config = typeof extension === 'object'
|
||||
? { files: `extensions/${extension.label}/out/**/*.test.js`, ...extension }
|
||||
@@ -99,3 +105,5 @@ module.exports = defineConfig(extensions.map(extension => {
|
||||
|
||||
return config;
|
||||
}));
|
||||
|
||||
export default config;
|
||||
|
||||
Reference in New Issue
Block a user