chore: remove 'as *' imports because of `esModuleInterop: true` (#34854)

This commit is contained in:
Max Schmitt 2025-02-19 15:32:12 +01:00 committed by GitHub
parent a3e8788b9c
commit 3584e72223
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
116 changed files with 210 additions and 210 deletions

View File

@ -47,7 +47,7 @@ Create `tests/auth.setup.ts` that will prepare authenticated browser state for a
```js title="tests/auth.setup.ts"
import { test as setup, expect } from '@playwright/test';
import * as path from 'path';
import path from 'path';
const authFile = path.join(__dirname, '../playwright/.auth/user.json');
@ -143,8 +143,8 @@ Create `playwright/fixtures.ts` file that will [override `storageState` fixture]
```js title="playwright/fixtures.ts"
import { test as baseTest, expect } from '@playwright/test';
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
export * from '@playwright/test';
export const test = baseTest.extend<{}, { workerStorageState: string }>({
@ -348,8 +348,8 @@ Alternatively, in a [worker fixture](#moderate-one-account-per-parallel-worker):
```js title="playwright/fixtures.ts"
import { test as baseTest, request } from '@playwright/test';
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
export * from '@playwright/test';
export const test = baseTest.extend<{}, { workerStorageState: string }>({

View File

@ -109,7 +109,7 @@ First, add fixtures that will load the extension:
```js title="fixtures.ts"
import { test as base, chromium, type BrowserContext } from '@playwright/test';
import * as path from 'path';
import path from 'path';
export const test = base.extend<{
context: BrowserContext;

View File

@ -389,7 +389,7 @@ Next, add init script to the page.
```js
import { test, expect } from '@playwright/test';
import * as path from 'path';
import path from 'path';
test.beforeEach(async ({ page }) => {
// Add script for every test in the beforeEach hook.

View File

@ -291,7 +291,7 @@ Here is an example that uses [`method: TestInfo.outputPath`] to create a tempora
```js
import { test, expect } from '@playwright/test';
import * as fs from 'fs';
import fs from 'fs';
test('example test', async ({}, testInfo) => {
const file = testInfo.outputPath('temporary-file.txt');

View File

@ -254,7 +254,7 @@ Returns a path inside the [`property: TestInfo.outputDir`] where the test can sa
```js
import { test, expect } from '@playwright/test';
import * as fs from 'fs';
import fs from 'fs';
test('example test', async ({}, testInfo) => {
const file = testInfo.outputPath('dir', 'temporary-file.txt');

View File

@ -212,7 +212,7 @@ Here is an example that uses [`method: TestInfo.outputPath`] to create a tempora
```js
import { test, expect } from '@playwright/test';
import * as fs from 'fs';
import fs from 'fs';
test('example test', async ({}, testInfo) => {
const file = testInfo.outputPath('temporary-file.txt');

View File

@ -408,7 +408,7 @@ Here is an example fixture that automatically attaches debug logs when the test
```js title="my-test.ts"
import debug from 'debug';
import * as fs from 'fs';
import fs from 'fs';
import { test as base } from '@playwright/test';
export const test = base.extend<{ saveLogs: void }>({

View File

@ -262,7 +262,7 @@ To make environment variables easier to manage, consider something like `.env` f
```js title="playwright.config.ts"
import { defineConfig } from '@playwright/test';
import dotenv from 'dotenv';
import * as path from 'path';
import path from 'path';
// Read from ".env" file.
dotenv.config({ path: path.resolve(__dirname, '.env') });
@ -309,8 +309,8 @@ See for example this CSV file, in our example `input.csv`:
Based on this we'll generate some tests by using the [csv-parse](https://www.npmjs.com/package/csv-parse) library from NPM:
```js title="test.spec.ts"
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { test } from '@playwright/test';
import { parse } from 'csv-parse/sync';

View File

@ -72,9 +72,9 @@ Using the following, Playwright will run your WebView2 application as a sub-proc
```js title="webView2Test.ts"
import { test as base } from '@playwright/test';
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import fs from 'fs';
import os from 'os';
import path from 'path';
import childProcess from 'child_process';
const EXECUTABLE_PATH = path.join(

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import type { Plugin, UserConfig } from 'vite';
export function bundle(): Plugin {

View File

@ -15,8 +15,8 @@
*/
import { devices, defineConfig } from '@playwright/experimental-ct-react';
import * as path from 'path';
import * as url from 'url';
import path from 'path';
import url from 'url';
export default defineConfig({
testDir: 'src',

View File

@ -17,7 +17,7 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { bundle } from './bundle';
import * as path from 'path';
import path from 'path';
// https://vitejs.dev/config/
export default defineConfig({

View File

@ -16,7 +16,7 @@
/* eslint-disable no-console */
import * as fs from 'fs';
import fs from 'fs';
import * as playwright from '../..';
import { PipeTransport } from '../server/utils/pipeTransport';

View File

@ -16,9 +16,9 @@
/* eslint-disable no-console */
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import fs from 'fs';
import os from 'os';
import path from 'path';
import * as playwright from '../..';
import { launchBrowserServer, printApiJson, runDriver, runServer } from './driver';

View File

@ -15,7 +15,7 @@
*/
import * as childProcess from 'child_process';
import * as path from 'path';
import path from 'path';
import { createConnectionFactory } from './client/clientBundle';
import { PipeTransport } from './server/utils/pipeTransport';

View File

@ -15,9 +15,9 @@
*/
import { EventEmitter } from 'events';
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import fs from 'fs';
import os from 'os';
import path from 'path';
import { TimeoutSettings } from '../timeoutSettings';
import { PipeTransport } from '../utils/pipeTransport';

View File

@ -15,7 +15,7 @@
*/
import { EventEmitter } from 'events';
import * as net from 'net';
import net from 'net';
import { assert } from '../../utils/isomorphic/assert';
import { createGuid } from '../utils/crypto';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import * as fs from 'fs';
import fs from 'fs';
import { assert } from '../utils';
import { TargetClosedError } from './errors';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import * as os from 'os';
import os from 'os';
import { assert } from '../../utils';
import { wrapInASCIIBox } from '../utils/ascii';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as os from 'os';
import * as path from 'path';
import os from 'os';
import path from 'path';
import { assert } from '../../utils';
import { wrapInASCIIBox } from '../utils/ascii';

View File

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
/* eslint-disable curly, indent */

View File

@ -15,8 +15,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { TimeoutSettings } from './timeoutSettings';
import { createGuid } from './utils/crypto';

View File

@ -14,9 +14,9 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import fs from 'fs';
import os from 'os';
import path from 'path';
import { normalizeProxySettings, validateBrowserContextOptions } from './browserContext';
import { DEFAULT_TIMEOUT, TimeoutSettings } from './timeoutSettings';

View File

@ -15,9 +15,9 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import fs from 'fs';
import os from 'os';
import path from 'path';
import { chromiumSwitches } from './chromiumSwitches';
import { CRBrowser } from './crBrowser';

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import * as path from 'path';
import path from 'path';
import { assert } from '../../utils/isomorphic/assert';
import { createGuid } from '../utils/crypto';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import * as fs from 'fs';
import fs from 'fs';
import type { CRSession } from './crConnection';

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import * as path from 'path';
import path from 'path';
import { assert } from '../../utils/isomorphic/assert';
import { createGuid } from '../utils/crypto';

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import * as fs from 'fs';
import fs from 'fs';
import { splitErrorMessage } from '../../utils/isomorphic/stackTrace';
import { mkdirIfNeeded } from '../utils/fileUtils';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import * as fs from 'fs';
import fs from 'fs';
import { Dispatcher, existingDispatcher } from './dispatcher';
import { StreamDispatcher } from './streamDispatcher';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { BrowserContext } from '../browserContext';
import { ArtifactDispatcher } from './artifactDispatcher';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import * as fs from 'fs';
import fs from 'fs';
import { Dispatcher } from './dispatcher';
import { createGuid } from '../utils/crypto';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import * as fs from 'fs';
import fs from 'fs';
import * as js from './javascript';
import { ProgressController } from './progress';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import * as path from 'path';
import path from 'path';
import { Page } from './page';
import { assert } from '../utils';

View File

@ -14,9 +14,9 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import fs from 'fs';
import os from 'os';
import path from 'path';
import * as readline from 'readline';
import { TimeoutSettings } from '../timeoutSettings';

View File

@ -14,11 +14,11 @@
* limitations under the License.
*/
import * as http from 'http';
import * as https from 'https';
import http from 'http';
import https from 'https';
import { Transform, pipeline } from 'stream';
import { TLSSocket } from 'tls';
import * as url from 'url';
import url from 'url';
import * as zlib from 'zlib';
import { TimeoutSettings } from './timeoutSettings';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { assert } from '../utils/isomorphic/assert';
import { mime } from '../utilsBundle';

View File

@ -15,8 +15,8 @@
* limitations under the License.
*/
import * as os from 'os';
import * as path from 'path';
import os from 'os';
import path from 'path';
import { FFBrowser } from './ffBrowser';
import { kBrowserCloseMessageId } from './ffConnection';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { Artifact } from '../artifact';
import { HarTracer } from './harTracer';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { createGuid } from './utils/crypto';
import { ZipFile } from './utils/zipFile';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { isUnderTest } from '../utils';
import { serverSideCallMetadata } from './instrumentation';

View File

@ -14,9 +14,9 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import fs from 'fs';
import os from 'os';
import path from 'path';
import { calculateSha1 } from './utils/crypto';
import { HarBackend } from './harBackend';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import * as fs from 'fs';
import fs from 'fs';
import * as consoleApiSource from '../generated/consoleApiSource';
import { isUnderTest } from '../utils';

View File

@ -15,8 +15,8 @@
*/
import { EventEmitter } from 'events';
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { isUnderTest } from '../utils/debug';
import { mime } from '../../utilsBundle';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import * as fs from 'fs';
import fs from 'fs';
export class ThrottledFile {
private _file: string;

View File

@ -16,9 +16,9 @@
*/
import * as childProcess from 'child_process';
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import fs from 'fs';
import os from 'os';
import path from 'path';
import { debugLogger } from '../utils/debugLogger';
import { ManualPromise } from '../../utils/isomorphic/manualPromise';

View File

@ -15,9 +15,9 @@
*/
import * as childProcess from 'child_process';
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import fs from 'fs';
import os from 'os';
import path from 'path';
import { deps } from './nativeDeps';
import { wrapInASCIIBox } from '../utils/ascii';

View File

@ -15,9 +15,9 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import fs from 'fs';
import os from 'os';
import path from 'path';
import * as util from 'util';
import { downloadBrowserWithProgressBar, logPolitely } from './browserFetcher';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { ManualPromise } from '../../utils/isomorphic/manualPromise';
import { httpRequest } from '../utils/network';

View File

@ -15,10 +15,10 @@
*/
import { EventEmitter } from 'events';
import * as http2 from 'http2';
import * as net from 'net';
import * as stream from 'stream';
import * as tls from 'tls';
import http2 from 'http2';
import net from 'net';
import stream from 'stream';
import tls from 'tls';
import { SocksProxy } from './utils/socksProxy';
import { ManualPromise, escapeHTML, generateSelfSignedCertificate, rewriteErrorMessage } from '../utils';

View File

@ -14,9 +14,9 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import fs from 'fs';
import os from 'os';
import path from 'path';
import { Snapshotter } from './snapshotter';
import { commandsWithTracingSnapshots } from '../../../protocol/debug';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { gracefullyProcessExitDoNotHang } from '../../../utils';
import { isUnderTest } from '../../../utils';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import * as crypto from 'crypto';
import crypto from 'crypto';
import { assert } from '../../utils/isomorphic/assert';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import * as fs from 'fs';
import fs from 'fs';
import { debug } from '../../utilsBundle';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { ManualPromise } from '../../utils/isomorphic/manualPromise';
import { yazl } from '../../zipBundle';

View File

@ -14,11 +14,11 @@
* limitations under the License.
*/
import * as dns from 'dns';
import * as http from 'http';
import * as https from 'https';
import * as net from 'net';
import * as tls from 'tls';
import dns from 'dns';
import http from 'http';
import https from 'https';
import net from 'net';
import tls from 'tls';
import { assert } from '../../utils/isomorphic/assert';
import { ManualPromise } from '../../utils/isomorphic/manualPromise';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import * as os from 'os';
import os from 'os';
import { getLinuxDistributionInfoSync } from './linuxUtils';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { mime, wsServer } from '../../utilsBundle';
import { createGuid } from './crypto';

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import * as fs from 'fs';
import fs from 'fs';
let didFailToReadOSRelease = false;
let osRelease: {

View File

@ -15,10 +15,10 @@
*/
import * as http from 'http';
import * as http2 from 'http2';
import * as https from 'https';
import * as url from 'url';
import http from 'http';
import http2 from 'http2';
import https from 'https';
import url from 'url';
import { HttpsProxyAgent, getProxyForUrl } from '../../utilsBundle';
import { httpHappyEyeballsAgent, httpsHappyEyeballsAgent } from './happyEyeballs';

View File

@ -14,9 +14,9 @@
* limitations under the License.
*/
import * as crypto from 'crypto';
import * as fs from 'fs';
import * as path from 'path';
import crypto from 'crypto';
import fs from 'fs';
import path from 'path';
import * as util from 'util';
import { Readable, Writable, pipeline } from 'stream';
import { EventEmitter } from 'events';

View File

@ -16,7 +16,7 @@
*/
import * as childProcess from 'child_process';
import * as fs from 'fs';
import fs from 'fs';
import * as readline from 'readline';
import { removeFolders } from './fileUtils';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
const profileDir = process.env.PWTEST_PROFILE_DIR || '';

View File

@ -15,7 +15,7 @@
*/
import EventEmitter from 'events';
import * as net from 'net';
import net from 'net';
import { assert } from '../../utils/isomorphic/assert';
import { createGuid } from './crypto';

View File

@ -15,7 +15,7 @@
*/
import { execSync } from 'child_process';
import * as os from 'os';
import os from 'os';
import { getLinuxDistributionInfoSync } from '../utils/linuxUtils';

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import * as path from 'path';
import path from 'path';
import { kBrowserCloseMessageId } from './wkConnection';
import { wrapInASCIIBox } from '../utils/ascii';

View File

@ -15,7 +15,7 @@
* limitations under the License.
*/
import * as path from 'path';
import path from 'path';
import { assert } from '../../utils';
import { headersArrayToObject } from '../../utils/isomorphic/headers';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { Watcher } from 'playwright/lib/fsWatcher';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import * as path from 'path';
import path from 'path';
import { declare, traverse, types } from 'playwright/lib/transform/babelBundle';
import { setTransformData } from 'playwright/lib/transform/transform';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { setExternalDependencies } from 'playwright/lib/transform/compilationCache';
import { resolveHook } from 'playwright/lib/transform/transform';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { getUserData } from 'playwright/lib/transform/compilationCache';
import { resolveHook } from 'playwright/lib/transform/transform';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import * as path from 'path';
import path from 'path';
import * as babel from '@babel/core';
import traverseFunction from '@babel/traverse';

View File

@ -14,9 +14,9 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import fs from 'fs';
import os from 'os';
import path from 'path';
import { getPackageJsonPath, mergeObjects } from '../util';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { gracefullyProcessExitDoNotHang } from 'playwright-core/lib/utils';
import { isRegExp } from 'playwright-core/lib/utils';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import * as url from 'url';
import url from 'url';
import { addToCompilationCache, serializeCompilationCache } from '../transform/compilationCache';
import { PortTransport } from '../transform/portTransport';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import * as crypto from 'crypto';
import crypto from 'crypto';
import { filterStackFile, formatLocation } from '../util';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import * as path from 'path';
import path from 'path';
import { calculateSha1, toPosixPath } from 'playwright-core/lib/utils';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import * as path from 'path';
import path from 'path';
import util from 'util';
import * as esmLoaderHost from './esmLoaderHost';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import * as playwrightLibrary from 'playwright-core';
import { setBoxedStackPrefixes, asLocator, createGuid, currentZone, debugMode, isString, jsonStringifyForceASCII } from 'playwright-core/lib/utils';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import * as path from 'path';
import path from 'path';
import { fileDependenciesForTest } from './transform/compilationCache';

View File

@ -15,8 +15,8 @@
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { escapeTemplateString, isString, sanitizeForFilePath } from 'playwright-core/lib/utils';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { compareBuffersOrStrings, getComparator, isString, sanitizeForFilePath } from 'playwright-core/lib/utils';
import { colors } from 'playwright-core/lib/utils';

View File

@ -13,8 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import * as net from 'net';
import * as path from 'path';
import net from 'net';
import path from 'path';
import { launchProcess, isURLAvailable, monotonicTime, raceAgainstDeadline } from 'playwright-core/lib/utils';
import { colors } from 'playwright-core/lib/utils';

View File

@ -16,8 +16,8 @@
/* eslint-disable no-console */
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { program } from 'playwright-core/lib/cli/program';
import { gracefullyProcessExitDoNotHang, startProfiling, stopProfiling } from 'playwright-core/lib/utils';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import * as path from 'path';
import path from 'path';
import { getPackageManagerExecCommand } from 'playwright-core/lib/utils';
import { parseStackFrame } from 'playwright-core/lib/utils';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { Readable } from 'stream';
import { removeFolders, sanitizeForFilePath } from 'playwright-core/lib/utils';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import * as path from 'path';
import path from 'path';
import { noColors } from 'playwright-core/lib/utils';
import { ms as milliseconds } from 'playwright-core/lib/utilsBundle';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { Transform } from 'stream';
import { HttpServer, MultiMap, assert, calculateSha1, getPackageManagerExecCommand, copyFileAndMakeWritable, gracefullyProcessExitDoNotHang, removeFolders, sanitizeForFilePath, toPosixPath } from 'playwright-core/lib/utils';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import * as fs from 'fs';
import fs from 'fs';
import { monotonicTime } from 'playwright-core/lib/utils';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { toPosixPath, MultiMap } from 'playwright-core/lib/utils';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { getAsBooleanFromENV } from 'playwright-core/lib/utils';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { resolveReporterOutputPath } from '../util';
import { TerminalReporter } from './base';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { ZipFile } from 'playwright-core/lib/utils';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import * as path from 'path';
import path from 'path';
import { createGuid } from 'playwright-core/lib/utils';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { filterProjects } from './projectUtils';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import * as path from 'path';
import path from 'path';
import { InProcessLoaderHost, OutOfProcessLoaderHost } from './loaderHost';
import { createFileFiltersFromArguments, createFileMatcherFromArguments, createTitleMatcher, errorWithFile, forceRegExp } from '../util';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { promisify } from 'util';
import { escapeRegExp } from 'playwright-core/lib/utils';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { MultiMap } from 'playwright-core/lib/utils';

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
import * as path from 'path';
import path from 'path';
import { calculateSha1 } from 'playwright-core/lib/utils';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { promisify } from 'util';
import { monotonicTime, removeFolders } from 'playwright-core/lib/utils';

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
import * as fs from 'fs';
import * as path from 'path';
import fs from 'fs';
import path from 'path';
import { installRootRedirect, openTraceInBrowser, openTraceViewerApp, registry, startTraceViewerServer } from 'playwright-core/lib/server';
import { ManualPromise, isUnderTest, gracefullyProcessExitDoNotHang } from 'playwright-core/lib/utils';

Some files were not shown because too many files have changed in this diff Show More