@atomic-testing/core
Advanced tools
Comparing version 0.46.1 to 0.46.2
@@ -21,2 +21,2 @@ import { PartLocator } from '../locators'; | ||
*/ | ||
export declare function getListItemIterator<T extends ComponentDriver>(host: ComponentDriver<any>, itemLocatorBase: PartLocator, driverClass: ComponentDriverClass<T>): AsyncGenerator<T, void, unknown>; | ||
export declare function getListItemIterator<T extends ComponentDriver<any>>(host: ComponentDriver<any>, itemLocatorBase: PartLocator, driverClass: ComponentDriverClass<T>): AsyncGenerator<T, void, unknown>; |
@@ -9,3 +9,3 @@ import { Optional } from './dataTypes'; | ||
export type PartName<T extends ScenePart> = keyof T; | ||
export type ComponentDriverClass<T extends ComponentDriver<P>, P extends ScenePart = {}> = new (locator: PartLocator, interactor: Interactor, option?: Partial<IComponentDriverOption<P>>) => T; | ||
export type ComponentDriverClass<T extends ComponentDriver<any>> = new (locator: PartLocator, interactor: Interactor, option?: Partial<IComponentDriverOption<any>>) => T; | ||
export interface ComponentPartDefinition<T extends ScenePart> { | ||
@@ -19,6 +19,5 @@ /** | ||
*/ | ||
driver: typeof ComponentDriver<T> | ComponentDriverClass<ComponentDriver<T>, T>; | ||
/** | ||
* Option for the driver | ||
*/ | ||
driver: { | ||
new (locator: PartLocator, interactor: Interactor, option?: Partial<IComponentDriverOption<T>>): ComponentDriver<T>; | ||
}; | ||
option?: Partial<IComponentDriverOption<T>>; | ||
@@ -25,0 +24,0 @@ } |
@@ -1,4 +0,5 @@ | ||
import { IComponentDriverOption, Interactor, PartLocator } from '@atomic-testing/core'; | ||
import { ComponentDriver } from './drivers/ComponentDriver'; | ||
import { ScenePart } from './partTypes'; | ||
import { Interactor } from './interactor/Interactor'; | ||
import { PartLocator } from './locators/PartLocator'; | ||
import { IComponentDriverOption, ScenePart } from './partTypes'; | ||
export declare class TestEngine<T extends ScenePart> extends ComponentDriver<T> { | ||
@@ -5,0 +6,0 @@ readonly interactor: Interactor; |
{ | ||
"name": "@atomic-testing/core", | ||
"version": "0.46.1", | ||
"version": "0.46.2", | ||
"description": "Core library for atomic-testing", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -37,3 +37,3 @@ import { byCssSelector, CssLocator, LocatorRelativePosition, PartLocator } from '../locators'; | ||
*/ | ||
export async function* getListItemIterator<T extends ComponentDriver>( | ||
export async function* getListItemIterator<T extends ComponentDriver<any>>( | ||
host: ComponentDriver<any>, | ||
@@ -40,0 +40,0 @@ itemLocatorBase: PartLocator, |
@@ -11,6 +11,6 @@ import { Optional } from './dataTypes'; | ||
export type ComponentDriverClass<T extends ComponentDriver<P>, P extends ScenePart = {}> = new ( | ||
export type ComponentDriverClass<T extends ComponentDriver<any>> = new ( | ||
locator: PartLocator, | ||
interactor: Interactor, | ||
option?: Partial<IComponentDriverOption<P>>, | ||
option?: Partial<IComponentDriverOption<any>>, | ||
) => T; | ||
@@ -27,7 +27,6 @@ | ||
*/ | ||
driver: typeof ComponentDriver<T> | ComponentDriverClass<ComponentDriver<T>, T>; | ||
driver: { | ||
new (locator: PartLocator, interactor: Interactor, option?: Partial<IComponentDriverOption<T>>): ComponentDriver<T>; | ||
}; | ||
/** | ||
* Option for the driver | ||
*/ | ||
option?: Partial<IComponentDriverOption<T>>; | ||
@@ -34,0 +33,0 @@ } |
@@ -1,5 +0,5 @@ | ||
import { IComponentDriverOption, Interactor, PartLocator } from '@atomic-testing/core'; | ||
import { ComponentDriver } from './drivers/ComponentDriver'; | ||
import { ScenePart } from './partTypes'; | ||
import { Interactor } from './interactor/Interactor'; | ||
import { PartLocator } from './locators/PartLocator'; | ||
import { IComponentDriverOption, ScenePart } from './partTypes'; | ||
@@ -6,0 +6,0 @@ export class TestEngine<T extends ScenePart> extends ComponentDriver<T> { |
Sorry, the diff of this file is not supported yet
218329