@@ -5,6 +5,7 @@ import * as prompt from "../../prompt";
55import * as downloadableEmulators from "../../emulator/downloadableEmulators" ;
66import { Emulators } from "../../emulator/types" ;
77import { Config } from "../../config" ;
8+ import { Setup } from "../index" ;
89
910describe ( "init/features/emulators" , ( ) => {
1011 let checkboxStub : sinon . SinonStub ;
@@ -25,7 +26,7 @@ describe("init/features/emulators", () => {
2526
2627 it ( "should do nothing if no emulators are selected" , async ( ) => {
2728 checkboxStub . resolves ( [ ] ) ;
28- const setup : any = { config : { } } ;
29+ const setup = { config : { } } as unknown as Setup ;
2930 const config = new Config ( { } , { } ) ;
3031
3132 await doSetup ( setup , config ) ;
@@ -40,7 +41,7 @@ describe("init/features/emulators", () => {
4041 confirmStub . onFirstCall ( ) . resolves ( false ) ; // UI
4142 confirmStub . onSecondCall ( ) . resolves ( false ) ; // Download
4243
43- const setup : any = { config : { } } ;
44+ const setup = { config : { } } as unknown as Setup ;
4445 const config = new Config ( { } , { } ) ;
4546
4647 await doSetup ( setup , config ) ;
@@ -56,7 +57,7 @@ describe("init/features/emulators", () => {
5657 numberStub . onSecondCall ( ) . resolves ( 4000 ) ; // UI port
5758 confirmStub . onSecondCall ( ) . resolves ( false ) ; // Download
5859
59- const setup : any = { config : { } } ;
60+ const setup = { config : { } } as unknown as Setup ;
6061 const config = new Config ( { } , { } ) ;
6162
6263 await doSetup ( setup , config ) ;
@@ -71,7 +72,7 @@ describe("init/features/emulators", () => {
7172 confirmStub . onFirstCall ( ) . resolves ( false ) ; // UI
7273 confirmStub . onSecondCall ( ) . resolves ( true ) ; // Download
7374
74- const setup : any = { config : { } } ;
75+ const setup = { config : { } } as unknown as Setup ;
7576 const config = new Config ( { } , { } ) ;
7677
7778 await doSetup ( setup , config ) ;
0 commit comments