@@ -46,7 +46,7 @@ describe('writeYaml', () => {
4646 } ) ;
4747
4848 it ( 'test dir' , async ( ) => {
49- const input = readIntermediate ( ) ;
49+ const input = await readIntermediate ( ) ;
5050 functionConfig . data ! [ SINK_DIR ] = tmpDir ;
5151 const configs = new kpt . Configs ( input . getAll ( ) , functionConfig ) ;
5252
@@ -57,7 +57,7 @@ describe('writeYaml', () => {
5757
5858 it ( "throws if --overwrite isn't passed for non-empty directory" , async ( ) => {
5959 fs . copySync ( SINK_DIR_EXPECTED , tmpDir ) ;
60- const input = readIntermediate ( ) ;
60+ const input = await readIntermediate ( ) ;
6161 functionConfig . data ! [ SINK_DIR ] = tmpDir ;
6262 const configs = new kpt . Configs ( input . getAll ( ) , functionConfig ) ;
6363
@@ -66,7 +66,7 @@ describe('writeYaml', () => {
6666
6767 it ( "silently makes output directory if it doesn't exist" , async ( ) => {
6868 const sinkDir = path . resolve ( tmpDir , 'foo' ) ;
69- const input = readIntermediate ( ) ;
69+ const input = await readIntermediate ( ) ;
7070 functionConfig . data ! [ SINK_DIR ] = sinkDir ;
7171 const configs = new kpt . Configs ( input . getAll ( ) , functionConfig ) ;
7272
@@ -88,7 +88,7 @@ describe('writeYaml', () => {
8888 path . resolve ( tmpDir , 'foo-corp-1.0.0' , 'podsecuritypolicy_psp.yaml' ) ,
8989 path . resolve ( tmpDir , 'foo-corp-1.0.0' , 'other.yaml' ) ,
9090 ) ;
91- const input = readIntermediate ( ) ;
91+ const input = await readIntermediate ( ) ;
9292 functionConfig . data ! [ SINK_DIR ] = tmpDir ;
9393 functionConfig . data ! [ OVERWRITE ] = 'true' ;
9494 const configs = new kpt . Configs ( input . getAll ( ) , functionConfig ) ;
@@ -160,7 +160,7 @@ describe('buildSourcePath', () => {
160160 } ) ;
161161} ) ;
162162
163- function readIntermediate ( ) : kpt . Configs {
163+ function readIntermediate ( ) : Promise < kpt . Configs > {
164164 return kpt . readConfigs ( INTERMEDIATE_FILE , kpt . FileFormat . YAML ) ;
165165}
166166
0 commit comments