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