Update npm packages (73 packages including @jqhtml 2.3.36)
Update npm registry domain from privatenpm.hanson.xyz to npm.internal.hanson.xyz 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
17
node_modules/playwright/lib/runner/testRunner.js
generated
vendored
17
node_modules/playwright/lib/runner/testRunner.js
generated
vendored
@@ -63,6 +63,7 @@ class TestRunner extends import_events.default {
|
||||
this._queue = Promise.resolve();
|
||||
this._watchTestDirs = false;
|
||||
this._populateDependenciesOnList = false;
|
||||
this._startingEnv = {};
|
||||
this.configLocation = configLocation;
|
||||
this._configCLIOverrides = configCLIOverrides;
|
||||
this._watcher = new import_fsWatcher.Watcher((events) => {
|
||||
@@ -75,6 +76,7 @@ class TestRunner extends import_events.default {
|
||||
(0, import_utils.setPlaywrightTestProcessEnv)();
|
||||
this._watchTestDirs = !!params.watchTestDirs;
|
||||
this._populateDependenciesOnList = !!params.populateDependenciesOnList;
|
||||
this._startingEnv = { ...process.env };
|
||||
}
|
||||
resizeTerminal(params) {
|
||||
process.stdout.columns = params.cols;
|
||||
@@ -107,15 +109,20 @@ class TestRunner extends import_events.default {
|
||||
const reporter = new import_internalReporter.InternalReporter(userReporters);
|
||||
const config = await this._loadConfigOrReportError(reporter, this._configCLIOverrides);
|
||||
if (!config)
|
||||
return { status: "failed" };
|
||||
return { status: "failed", env: [] };
|
||||
const { status, cleanup } = await (0, import_tasks.runTasksDeferCleanup)(new import_tasks.TestRun(config, reporter), [
|
||||
...(0, import_tasks.createGlobalSetupTasks)(config)
|
||||
]);
|
||||
const env = [];
|
||||
for (const key of /* @__PURE__ */ new Set([...Object.keys(process.env), ...Object.keys(this._startingEnv)])) {
|
||||
if (this._startingEnv[key] !== process.env[key])
|
||||
env.push([key, process.env[key] ?? null]);
|
||||
}
|
||||
if (status !== "passed")
|
||||
await cleanup();
|
||||
else
|
||||
this._globalSetup = { cleanup };
|
||||
return { status };
|
||||
return { status, env };
|
||||
}
|
||||
async runGlobalTeardown() {
|
||||
const globalSetup = this._globalSetup;
|
||||
@@ -251,6 +258,7 @@ class TestRunner extends import_events.default {
|
||||
},
|
||||
...params.updateSnapshots ? { updateSnapshots: params.updateSnapshots } : {},
|
||||
...params.updateSourceMethod ? { updateSourceMethod: params.updateSourceMethod } : {},
|
||||
...params.runAgents ? { runAgents: params.runAgents } : {},
|
||||
...params.workers ? { workers: params.workers } : {}
|
||||
};
|
||||
const config = await this._loadConfigOrReportError(new import_internalReporter.InternalReporter([userReporter]), overrides);
|
||||
@@ -258,7 +266,7 @@ class TestRunner extends import_events.default {
|
||||
return { status: "failed" };
|
||||
config.cliListOnly = false;
|
||||
config.cliPassWithNoTests = true;
|
||||
config.cliArgs = params.locations || [];
|
||||
config.cliArgs = params.locations;
|
||||
config.cliGrep = params.grep;
|
||||
config.cliGrepInvert = params.grepInvert;
|
||||
config.cliProjectFilter = params.projects?.length ? params.projects : void 0;
|
||||
@@ -376,7 +384,8 @@ async function runAllTestsWithConfig(config) {
|
||||
(0, import_tasks.createLoadTask)("in-process", { filterOnly: true, failOnLoadErrors: true }),
|
||||
...(0, import_tasks.createRunTestsTasks)(config)
|
||||
];
|
||||
const status = await (0, import_tasks.runTasks)(new import_tasks.TestRun(config, reporter), tasks, config.config.globalTimeout);
|
||||
const testRun = new import_tasks.TestRun(config, reporter, { pauseAtEnd: config.configCLIOverrides.pause, pauseOnError: config.configCLIOverrides.pause });
|
||||
const status = await (0, import_tasks.runTasks)(testRun, tasks, config.config.globalTimeout);
|
||||
await new Promise((resolve) => process.stdout.write("", () => resolve()));
|
||||
await new Promise((resolve) => process.stderr.write("", () => resolve()));
|
||||
return status;
|
||||
|
||||
Reference in New Issue
Block a user