@@ -60,7 +60,7 @@ describe('ExecutableCollector', () => {
6060 } )
6161
6262 it ( 'should collect executables from apple directory with multiple architectures' , async ( ) => {
63- const executablePath = '.build/apple/Products/release /myExecutable'
63+ const executablePath = '.build/apple/Products/Release /myExecutable'
6464 const mockGlobber = new MockGlobber ( )
6565 mockGlobber . glob . mockImplementation ( ( ) => {
6666 return Promise . resolve ( [ executablePath ] )
@@ -82,6 +82,23 @@ describe('ExecutableCollector', () => {
8282 )
8383 } )
8484
85+ it ( 'should capitalize configuration for apple directory' , async ( ) => {
86+ const executablePath = '.build/apple/Products/Release/myExecutable'
87+ const mockGlobber = new MockGlobber ( )
88+ mockGlobber . glob . mockResolvedValue ( [ executablePath ] )
89+ glob . create . mockResolvedValue ( mockGlobber )
90+ jest
91+ . spyOn ( ArchDetector . prototype , 'detectArch' )
92+ . mockResolvedValue ( [ 'arm64' ] )
93+
94+ const collector = new ExecutableCollector ( 'myExecutable' )
95+ await collector . collect ( 'release' )
96+
97+ expect ( glob . create ) . toHaveBeenCalledWith (
98+ expect . stringContaining ( 'apple/Products/Release' )
99+ )
100+ } )
101+
85102 it ( 'should return empty array when no executables found' , async ( ) => {
86103 const mockGlobber = new MockGlobber ( )
87104 mockGlobber . glob . mockImplementation ( ( ) => {
0 commit comments