@@ -7,6 +7,7 @@ jest.mock('../host-iptables');
77jest . mock ( '../cli-workflow' ) ;
88jest . mock ( '../redact-secrets' ) ;
99jest . mock ( '../option-parsers' ) ;
10+ jest . mock ( '../dind-probe' ) ;
1011jest . mock ( './preflight' ) ;
1112jest . mock ( './signal-handler' ) ;
1213jest . mock ( './validate-options' ) ;
@@ -17,6 +18,7 @@ import * as hostIptables from '../host-iptables';
1718import * as cliWorkflow from '../cli-workflow' ;
1819import * as redactSecrets from '../redact-secrets' ;
1920import * as optionParsers from '../option-parsers' ;
21+ import * as dindProbe from '../dind-probe' ;
2022import * as preflight from './preflight' ;
2123import * as signalHandler from './signal-handler' ;
2224import * as validateOptions from './validate-options' ;
@@ -27,6 +29,7 @@ const mockedHostIptables = hostIptables as jest.Mocked<typeof hostIptables>;
2729const mockedCliWorkflow = cliWorkflow as jest . Mocked < typeof cliWorkflow > ;
2830const mockedRedactSecrets = redactSecrets as jest . Mocked < typeof redactSecrets > ;
2931const mockedOptionParsers = optionParsers as jest . Mocked < typeof optionParsers > ;
32+ const mockedDindProbe = dindProbe as jest . Mocked < typeof dindProbe > ;
3033const mockedPreflight = preflight as jest . Mocked < typeof preflight > ;
3134const mockedSignalHandler = signalHandler as jest . Mocked < typeof signalHandler > ;
3235const mockedValidateOptions = validateOptions as jest . Mocked < typeof validateOptions > ;
@@ -71,6 +74,11 @@ describe('createMainAction', () => {
7174 mockedDockerManager . setAwfDockerHost . mockImplementation ( ( ) => { } ) ;
7275 mockedRedactSecrets . redactSecrets . mockImplementation ( ( s : string ) => s ) ;
7376 mockedOptionParsers . joinShellArgs . mockImplementation ( ( args : string [ ] ) => args . join ( ' ' ) ) ;
77+ mockedDindProbe . probeSplitFilesystem . mockResolvedValue ( {
78+ prefix : undefined ,
79+ splitDetected : false ,
80+ inconclusive : false ,
81+ } ) ;
7482 mockedSignalHandler . registerSignalHandlers . mockImplementation ( ( ) => { } ) ;
7583 mockedCliWorkflow . runMainWorkflow . mockResolvedValue ( 0 ) ;
7684 } ) ;
0 commit comments