1+ type ServiceInstance = import ( '@wdio/types' ) . Services . ServiceInstance ;
2+ type Test = import ( '@wdio/types' ) . Frameworks . Test ;
3+ type TestResult = import ( '@wdio/types' ) . Frameworks . TestResult ;
4+ type PickleStep = import ( '@wdio/types' ) . Frameworks . PickleStep ;
5+ type Scenario = import ( '@wdio/types' ) . Frameworks . Scenario ;
6+ type SnapshotResult = import ( '@vitest/snapshot' ) . SnapshotResult ;
7+ type SnapshotUpdateState = import ( '@vitest/snapshot' ) . SnapshotUpdateState ;
8+
19declare namespace ExpectWebdriverIO {
210 const expect : ExpectWebdriverIO . Expect
311 function setOptions ( options : DefaultOptions ) : void
412 function getConfig ( ) : any
513
614 interface SnapshotServiceArgs {
7- updateState ?: import ( '@vitest/snapshot' ) . SnapshotUpdateState
15+ updateState ?: SnapshotUpdateState
816 resolveSnapshotPath ?: ( path : string , extension : string ) => string
917 }
1018
1119 class SnapshotService {
12- static initiate ( options : SnapshotServiceArgs ) : import ( '@wdio/types' ) . Services . ServiceInstance & {
13- results : import ( '@vitest/snapshot' ) . SnapshotResult [ ]
20+ static initiate ( options : SnapshotServiceArgs ) : ServiceInstance & {
21+ results : SnapshotResult [ ]
1422 }
1523 }
1624
@@ -35,12 +43,12 @@ declare namespace ExpectWebdriverIO {
3543 autoAssertOnTestEnd ?: boolean ;
3644 }
3745
38- class SoftAssertionService implements import ( '@wdio/types' ) . Services . ServiceInstance {
46+ class SoftAssertionService implements ServiceInstance {
3947 constructor ( serviceOptions ?: SoftAssertionServiceOptions , capabilities ?: any , config ?: any ) ;
40- beforeTest ( test : import ( '@wdio/types' ) . Frameworks . Test ) : void ;
41- beforeStep ( step : import ( '@wdio/types' ) . Frameworks . PickleStep , scenario : import ( '@wdio/types' ) . Frameworks . Scenario ) : void ;
42- afterTest ( test : import ( '@wdio/types' ) . Frameworks . Test , context : any , result : import ( '@wdio/types' ) . Frameworks . TestResult ) : void ;
43- afterStep ( step : import ( '@wdio/types' ) . Frameworks . PickleStep , scenario : import ( '@wdio/types' ) . Frameworks . Scenario , result : { passed : boolean , error ?: Error } ) : void ;
48+ beforeTest ( test : Test ) : void ;
49+ beforeStep ( step : PickleStep , scenario : Scenario ) : void ;
50+ afterTest ( test : Test , context : any , result : TestResult ) : void ;
51+ afterStep ( step : PickleStep , scenario : Scenario , result : { passed : boolean , error ?: Error } ) : void ;
4452 }
4553
4654 interface AssertionResult {
0 commit comments