fix: correct unwanted sorting and formatting of imports.

This commit is contained in:
Stevan Freeborn 2024-02-26 23:31:58 -06:00
parent 89abab8265
commit 2a05eefb33
7 changed files with 23 additions and 21 deletions

View file

@ -16,24 +16,25 @@
/* eslint-disable no-console */
import type { Command } from 'playwright-core/lib/utilsBundle';
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';
import type { Command } from 'playwright-core/lib/utilsBundle';
import type { ReporterDescription, TraceMode } from '../types/test';
import type { FullResult, TestError } from '../types/testReporter';
import { builtInReporters, defaultReporter, defaultTimeout } from './common/config';
import { loadConfigFromFileRestartIfNeeded, loadEmptyConfigForMergeReports } from './common/configLoader';
import type { ConfigCLIOverrides } from './common/ipc';
import { prepareErrorStack } from './reporters/base';
import { Runner } from './runner/runner';
import { stopProfiling, startProfiling, gracefullyProcessExitDoNotHang } from 'playwright-core/lib/utils';
import { serializeError } from './util';
import { showHTMLReport } from './reporters/html';
import { createMergedReport } from './reporters/merge';
import { Runner } from './runner/runner';
import { runTestServer } from './runner/testServer';
import { cacheDir } from './transform/compilationCache';
import { serializeError } from './util';
import { loadConfigFromFileRestartIfNeeded, loadEmptyConfigForMergeReports } from './common/configLoader';
import type { ConfigCLIOverrides } from './common/ipc';
import type { FullResult, TestError } from '../types/testReporter';
import type { TraceMode } from '../types/test';
import { builtInReporters, defaultReporter, defaultTimeout } from './common/config';
import { program } from 'playwright-core/lib/cli/program';
export { program } from 'playwright-core/lib/cli/program';
import type { ReporterDescription } from '../types/test';
import { prepareErrorStack } from './reporters/base';
import { cacheDir } from './transform/compilationCache';
import { runTestServer } from './runner/testServer';
function addTestCommand(program: Command) {
const command = program.command('test [test-filter...]');

View file

@ -19,10 +19,11 @@ import type * as trace from '@trace/trace';
import type EventEmitter from 'events';
import fs from 'fs';
import path from 'path';
import { ManualPromise, calculateSha1, createGuid, monotonicTime } from 'playwright-core/lib/utils';
import { ManualPromise, calculateSha1, monotonicTime, createGuid } from 'playwright-core/lib/utils';
import { yauzl, yazl } from 'playwright-core/lib/zipBundle';
import type { PlaywrightWorkerOptions, TestInfo, TestInfoError, TraceMode } from '../../types/test';
import type { TestInfo, TestInfoError } from '../../types/test';
import { filteredStackTrace } from '../util';
import type { TraceMode, PlaywrightWorkerOptions } from '../../types/test';
import type { TestInfoImpl } from './testInfo';
export type Attachment = TestInfo['attachments'][0];

View file

@ -15,7 +15,7 @@
* limitations under the License.
*/
import type { APIRequestContext, APIResponse, Browser, BrowserContext, BrowserContextOptions, Geolocation, HTTPCredentials, LaunchOptions, Locator, Page, PageScreenshotOptions, ViewportSize } from 'playwright-core';
import type { APIRequestContext, Browser, BrowserContext, BrowserContextOptions, Page, LaunchOptions, ViewportSize, Geolocation, HTTPCredentials, Locator, APIResponse, PageScreenshotOptions } from 'playwright-core';
export * from 'playwright-core';
export type ReporterDescription =

View file

@ -14,8 +14,8 @@
* limitations under the License.
*/
import type { PageScreenshotOptions, ScreenshotMode, VideoMode } from '@playwright/test';
import type { Page, ViewportSize } from 'playwright-core';
import type { PageScreenshotOptions, ScreenshotMode, VideoMode } from '@playwright/test';
export { expect } from '@playwright/test';
// Page test does not guarantee an isolated context, just a new page (because Android).

View file

@ -14,9 +14,9 @@
* limitations under the License.
*/
import { test, expect } from './playwright-test-fixtures';
import fs from 'fs';
import path from 'path';
import { expect, test } from './playwright-test-fixtures';
function listFiles(dir: string): string[] {
const result: string[] = [];

View file

@ -14,9 +14,9 @@
* limitations under the License.
*/
import fs from 'fs';
import { test, expect } from './playwright-test-fixtures';
import { parseTrace, parseTraceRaw } from '../config/utils';
import { expect, test } from './playwright-test-fixtures';
import fs from 'fs';
test.describe.configure({ mode: 'parallel' });

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
import type { APIRequestContext, APIResponse, Browser, BrowserContext, BrowserContextOptions, Geolocation, HTTPCredentials, LaunchOptions, Locator, Page, PageScreenshotOptions, ViewportSize } from 'playwright-core';
import type { APIRequestContext, Browser, BrowserContext, BrowserContextOptions, Page, LaunchOptions, ViewportSize, Geolocation, HTTPCredentials, Locator, APIResponse, PageScreenshotOptions } from 'playwright-core';
export * from 'playwright-core';
export type ReporterDescription =