fix: correct unwanted sorting and formatting of imports.
This commit is contained in:
parent
89abab8265
commit
2a05eefb33
|
|
@ -16,24 +16,25 @@
|
||||||
|
|
||||||
/* eslint-disable no-console */
|
/* eslint-disable no-console */
|
||||||
|
|
||||||
|
import type { Command } from 'playwright-core/lib/utilsBundle';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { program } from 'playwright-core/lib/cli/program';
|
import { Runner } from './runner/runner';
|
||||||
import { gracefullyProcessExitDoNotHang, startProfiling, stopProfiling } from 'playwright-core/lib/utils';
|
import { stopProfiling, startProfiling, gracefullyProcessExitDoNotHang } from 'playwright-core/lib/utils';
|
||||||
import type { Command } from 'playwright-core/lib/utilsBundle';
|
import { serializeError } from './util';
|
||||||
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 { showHTMLReport } from './reporters/html';
|
import { showHTMLReport } from './reporters/html';
|
||||||
import { createMergedReport } from './reporters/merge';
|
import { createMergedReport } from './reporters/merge';
|
||||||
import { Runner } from './runner/runner';
|
import { loadConfigFromFileRestartIfNeeded, loadEmptyConfigForMergeReports } from './common/configLoader';
|
||||||
import { runTestServer } from './runner/testServer';
|
import type { ConfigCLIOverrides } from './common/ipc';
|
||||||
import { cacheDir } from './transform/compilationCache';
|
import type { FullResult, TestError } from '../types/testReporter';
|
||||||
import { serializeError } from './util';
|
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';
|
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) {
|
function addTestCommand(program: Command) {
|
||||||
const command = program.command('test [test-filter...]');
|
const command = program.command('test [test-filter...]');
|
||||||
|
|
|
||||||
|
|
@ -19,10 +19,11 @@ import type * as trace from '@trace/trace';
|
||||||
import type EventEmitter from 'events';
|
import type EventEmitter from 'events';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import path from 'path';
|
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 { 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 { filteredStackTrace } from '../util';
|
||||||
|
import type { TraceMode, PlaywrightWorkerOptions } from '../../types/test';
|
||||||
import type { TestInfoImpl } from './testInfo';
|
import type { TestInfoImpl } from './testInfo';
|
||||||
|
|
||||||
export type Attachment = TestInfo['attachments'][0];
|
export type Attachment = TestInfo['attachments'][0];
|
||||||
|
|
|
||||||
2
packages/playwright/types/test.d.ts
vendored
2
packages/playwright/types/test.d.ts
vendored
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* 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 * from 'playwright-core';
|
||||||
|
|
||||||
export type ReporterDescription =
|
export type ReporterDescription =
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { PageScreenshotOptions, ScreenshotMode, VideoMode } from '@playwright/test';
|
|
||||||
import type { Page, ViewportSize } from 'playwright-core';
|
import type { Page, ViewportSize } from 'playwright-core';
|
||||||
|
import type { PageScreenshotOptions, ScreenshotMode, VideoMode } from '@playwright/test';
|
||||||
export { expect } from '@playwright/test';
|
export { expect } from '@playwright/test';
|
||||||
|
|
||||||
// Page test does not guarantee an isolated context, just a new page (because Android).
|
// Page test does not guarantee an isolated context, just a new page (because Android).
|
||||||
|
|
|
||||||
|
|
@ -14,9 +14,9 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { test, expect } from './playwright-test-fixtures';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { expect, test } from './playwright-test-fixtures';
|
|
||||||
|
|
||||||
function listFiles(dir: string): string[] {
|
function listFiles(dir: string): string[] {
|
||||||
const result: string[] = [];
|
const result: string[] = [];
|
||||||
|
|
|
||||||
|
|
@ -14,9 +14,9 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import fs from 'fs';
|
import { test, expect } from './playwright-test-fixtures';
|
||||||
import { parseTrace, parseTraceRaw } from '../config/utils';
|
import { parseTrace, parseTraceRaw } from '../config/utils';
|
||||||
import { expect, test } from './playwright-test-fixtures';
|
import fs from 'fs';
|
||||||
|
|
||||||
test.describe.configure({ mode: 'parallel' });
|
test.describe.configure({ mode: 'parallel' });
|
||||||
|
|
||||||
|
|
|
||||||
2
utils/generate_types/overrides-test.d.ts
vendored
2
utils/generate_types/overrides-test.d.ts
vendored
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* 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 * from 'playwright-core';
|
||||||
|
|
||||||
export type ReporterDescription =
|
export type ReporterDescription =
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue