chore(ct-angular): remove duplicate PlaywrightTestConfig type

This commit is contained in:
Younes Jaaidi 2024-03-27 23:15:31 +01:00
parent 16a0df1b60
commit 3449eb8e12
No known key found for this signature in database
GPG key ID: 3126C5717BDF3241

View file

@ -15,26 +15,17 @@
*/ */
import type { import type {
TestType, Locator,
PlaywrightTestArgs, PlaywrightTestArgs,
PlaywrightTestConfig as BasePlaywrightTestConfig,
PlaywrightTestOptions, PlaywrightTestOptions,
PlaywrightWorkerArgs, PlaywrightWorkerArgs,
PlaywrightWorkerOptions, PlaywrightWorkerOptions,
Locator, TestType,
} from '@playwright/test'; } from '@playwright/test';
import type { JsonObject } from '@playwright/experimental-ct-core/types/component'; import type { JsonObject } from '@playwright/experimental-ct-core/types/component';
import type { InlineConfig } from 'vite';
import type { Provider, Type } from '@angular/core'; import type { Provider, Type } from '@angular/core';
export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig<T, W>, 'use'> & { export type { PlaywrightTestConfig } from '@playwright/experimental-ct-core';
use?: BasePlaywrightTestConfig<T, W>['use'] & {
ctPort?: number;
ctTemplateDir?: string;
ctCacheDir?: string;
ctViteConfig?: InlineConfig | (() => Promise<InlineConfig>);
};
};
type ComponentEvents = Record<string, Function>; type ComponentEvents = Record<string, Function>;