@@ -138,15 +138,18 @@ describe('HeaderButtonsProvider renders', () => {
138
138
console . log ( `stdout: ${ ls . stdout . toString ( ) } ` ) ;
139
139
140
140
const cwd = process . cwd ( ) ;
141
- console . log ( { cwd } ) ;
142
141
const examplePath = `${ cwd } /example/` ;
142
+ console . log ( { cwd, examplePath } ) ;
143
143
child_process . execSync (
144
144
`cd ${ examplePath } && yarn requires-ios && yarn requires-android`
145
145
) ;
146
146
ls = spawnSync ( 'ls' , [ '-a' , 'example' ] ) ;
147
147
148
148
console . log ( `stderr: ${ ls . stderr . toString ( ) } ` ) ;
149
149
console . log ( `stdout: ${ ls . stdout . toString ( ) } ` ) ;
150
+ const more = spawnSync ( 'less' , [ 'example/requires-ios.txt' ] ) ;
151
+ console . log ( `stderr: ${ more . stderr . toString ( ) } ` ) ;
152
+ console . log ( `stdout: ${ more . stdout . toString ( ) } ` ) ;
150
153
// Read the output from the file
151
154
const outputIos = fs . readFileSync (
152
155
path . join ( examplePath , `requires-ios.txt` ) ,
@@ -164,6 +167,9 @@ describe('HeaderButtonsProvider renders', () => {
164
167
// return file name only
165
168
return path . split ( '/' ) . pop ( ) ;
166
169
} ) ;
170
+ console . log ( { outputIos } ) ;
171
+ console . log ( { filteredIos } ) ;
172
+
167
173
const filteredAndroid = outputAndroid
168
174
. split ( '\n' )
169
175
. filter ( ( line ) => line . includes ( '/header-buttons/src' ) )
0 commit comments