@@ -13,7 +13,7 @@ import {type BrowserWrapper, DEFAULT_BROWSER_SETTINGS, Launcher} from '../shared
1313import { DEFAULT_DEVTOOLS_SETTINGS , setupDevToolsPage } from '../shared/frontend-helper.js' ;
1414import { setupInspectedPage } from '../shared/target-helper.js' ;
1515
16- import type { HarnessSettings , SuiteSettings , TestCallbackWithState } from './mocha-interface-helpers.js' ;
16+ import type { TestCallbackWithState } from './mocha-interface-helpers.js' ;
1717
1818class DebugModeNotice {
1919 /* eslint-disable no-console */
@@ -50,7 +50,7 @@ export class StateProvider {
5050 static instance = new StateProvider ( ) ;
5151
5252 debugNotice : DebugModeNotice ;
53- settingsCallbackMap : Map < Mocha . Suite , SuiteSettings > ;
53+ settingsCallbackMap : Map < Mocha . Suite , E2E . SuiteSettings > ;
5454 browserMap : Map < string , BrowserWrapper > ;
5555 static serverPort : Number ;
5656
@@ -60,7 +60,7 @@ export class StateProvider {
6060 this . browserMap = new Map ( ) ;
6161 }
6262
63- registerSettingsCallback ( suite : Mocha . Suite , suiteSettings : SuiteSettings ) {
63+ registerSettingsCallback ( suite : Mocha . Suite , suiteSettings : E2E . SuiteSettings ) {
6464 this . settingsCallbackMap . set ( suite , suiteSettings ) ;
6565 }
6666
@@ -112,7 +112,7 @@ export class StateProvider {
112112 return { state, browsingContext} ;
113113 }
114114
115- private async getSettings ( suite : Mocha . Suite ) : Promise < HarnessSettings > {
115+ private async getSettings ( suite : Mocha . Suite ) : Promise < E2E . HarnessSettings > {
116116 const settings = this . settingsCallbackMap . get ( suite ) ;
117117 if ( settings ) {
118118 return mergeSettings ( settings , DEFAULT_SETTINGS ) ;
@@ -138,7 +138,7 @@ export class StateProvider {
138138 }
139139}
140140
141- export function mergeSettings ( s1 : SuiteSettings , s2 : HarnessSettings ) : HarnessSettings {
141+ export function mergeSettings ( s1 : E2E . SuiteSettings , s2 : E2E . HarnessSettings ) : E2E . HarnessSettings {
142142 function mergeAsSet < T > ( arr1 ?: T [ ] , arr2 ?: T [ ] ) {
143143 return Array . from ( new Set ( arr1 ?? [ ] ) . union ( new Set ( arr2 ?? [ ] ) ) ) ;
144144 }
0 commit comments