Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: move pipe transport utils to server/ (#34787)
Pavel Feldman9ecf2f69bafd
diff --git a/packages/playwright-core/src/cli/driver.ts b/packages/playwright-core/src/cli/driver.tsindex 1e16de00bf..104db006cc 100644--- a/packages/playwright-core/src/cli/driver.ts+++ b/packages/playwright-core/src/cli/driver.ts@@ -19,7 +19,7 @@import * as fs from 'fs';import * as playwright from '../..';-import { PipeTransport } from '../utils/pipeTransport';+import { PipeTransport } from '../server/utils/pipeTransport';import { PlaywrightServer } from '../remote/playwrightServer';import { DispatcherConnection, PlaywrightDispatcher, RootDispatcher, createPlaywright } from '../server';import { gracefullyProcessExitDoNotHang } from '../server/utils/processLauncher';diff --git a/packages/playwright-core/src/outofprocess.ts b/packages/playwright-core/src/outofprocess.tsindex c24decb900..c2427b818d 100644--- a/packages/playwright-core/src/outofprocess.ts+++ b/packages/playwright-core/src/outofprocess.ts@@ -18,7 +18,7 @@ import * as childProcess from 'child_process';import * as path from 'path';import { Connection } from './client/connection';-import { PipeTransport } from './utils/pipeTransport';+import { PipeTransport } from './server/utils/pipeTransport';import { ManualPromise } from './utils/isomorphic/manualPromise';import { nodePlatform } from './server/utils/nodePlatform';diff --git a/packages/playwright-core/src/server/android/android.ts b/packages/playwright-core/src/server/android/android.tsindex c1516dea76..a4bf8f8ded 100644--- a/packages/playwright-core/src/server/android/android.ts+++ b/packages/playwright-core/src/server/android/android.ts@@ -20,11 +20,11 @@ import * as os from 'os';import * as path from 'path';import { TimeoutSettings } from '../../utils/isomorphic/timeoutSettings';-import { PipeTransport } from '../../utils/pipeTransport';+import { PipeTransport } from '../utils/pipeTransport';import { createGuid } from '../utils/crypto';import { isUnderTest } from '../../utils/isomorphic/debug';import { getPackageManagerExecCommand } from '../utils/env';-import { makeWaitForNextTask } from '../../utils/task';+import { makeWaitForNextTask } from '../utils/task';import { RecentLogsCollector } from '../utils/debugLogger';import { debug } from '../../utilsBundle';import { wsReceiver, wsSender } from '../../utilsBundle';diff --git a/packages/playwright-core/src/utils/pipeTransport.ts b/packages/playwright-core/src/server/utils/pipeTransport.tssimilarity index 100%rename from packages/playwright-core/src/utils/pipeTransport.tsrename to packages/playwright-core/src/server/utils/pipeTransport.tsdiff --git a/packages/playwright-core/src/utils/task.ts b/packages/playwright-core/src/server/utils/task.tssimilarity index 100%rename from packages/playwright-core/src/utils/task.tsrename to packages/playwright-core/src/server/utils/task.tsdiff --git a/packages/playwright-core/src/utils.ts b/packages/playwright-core/src/utils.tsindex 1a0c446c6b..a61f84801c 100644--- a/packages/playwright-core/src/utils.ts+++ b/packages/playwright-core/src/utils.ts@@ -29,7 +29,6 @@ export * from './utils/isomorphic/urlMatch';export * from './utils/isomorphic/headers';export * from './utils/isomorphic/semaphore';export * from './utils/isomorphic/stackTrace';-export * from './utils/task';export * from './utils/zipFile';export * from './utils/zones';@@ -49,6 +48,7 @@ export * from './server/utils/processLauncher';export * from './server/utils/profiler';export * from './server/utils/socksProxy';export * from './server/utils/spawnAsync';+export * from './server/utils/task';export * from './server/utils/userAgent';export * from './server/utils/wsServer';