File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,22 +37,13 @@ const programMocks = vi.hoisted(() => {
3737 } ;
3838} ) ;
3939
40- export const messageCommand = programMocks . messageCommand as AnyMock ;
41- export const statusCommand = programMocks . statusCommand as AnyMock ;
4240export const configureCommand = programMocks . configureCommand as AnyMock ;
43- export const configureCommandWithSections = programMocks . configureCommandWithSections as AnyMock ;
4441export const setupCommand = programMocks . setupCommand as AnyMock ;
45- export const onboardCommand = programMocks . onboardCommand as AnyMock ;
4642export const setupWizardCommand = programMocks . setupWizardCommand as AnyMock ;
4743export const callGateway = programMocks . callGateway as AnyMock ;
48- export const runChannelLogin = programMocks . runChannelLogin as AnyMock ;
49- export const runChannelLogout = programMocks . runChannelLogout as AnyMock ;
5044export const runTui = programMocks . runTui as AnyMock ;
5145export const runCrestodian = programMocks . runCrestodian as AnyMock ;
52- export const loadAndMaybeMigrateDoctorConfig =
53- programMocks . loadAndMaybeMigrateDoctorConfig as AnyMock ;
5446export const ensureConfigReady = programMocks . ensureConfigReady as AnyMock ;
55- export const ensurePluginRegistryLoaded = programMocks . ensurePluginRegistryLoaded as AnyMock ;
5647
5748export const runtime = programMocks . runtime as {
5849 log : Mock < ( ...args : unknown [ ] ) => void > ;
Original file line number Diff line number Diff line change @@ -23,11 +23,11 @@ type MockCallsWithFirstArg = {
2323 } ;
2424} ;
2525
26- export function normalizeRuntimeStdout ( value : string ) : string {
26+ function normalizeRuntimeStdout ( value : string ) : string {
2727 return value . endsWith ( "\n" ) ? value . slice ( 0 , - 1 ) : value ;
2828}
2929
30- export function stringifyRuntimeJson ( value : unknown , space = 2 ) : string {
30+ function stringifyRuntimeJson ( value : unknown , space = 2 ) : string {
3131 return JSON . stringify ( value , null , space > 0 ? space : undefined ) ;
3232}
3333
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export const readConfigFileSnapshotMock: Mock<(...args: unknown[]) => Promise<un
1111export const writeConfigFileMock : Mock < ( ...args : unknown [ ] ) => Promise < unknown > > = vi
1212 . fn ( )
1313 . mockResolvedValue ( undefined ) ;
14- export const replaceConfigFileMock : Mock < ( ...args : unknown [ ] ) => Promise < unknown > > = vi . fn (
14+ const replaceConfigFileMock : Mock < ( ...args : unknown [ ] ) => Promise < unknown > > = vi . fn (
1515 async ( params : { nextConfig : OpenClawConfig } ) : Promise < ReplaceConfigFileResult > => {
1616 await writeConfigFileMock ( params . nextConfig ) ;
1717 return {
You can’t perform that action at this time.
0 commit comments