chore: Fix types in tests 35/N.

This commit is contained in:
cpojer
2026-02-17 15:46:25 +09:00
parent ed75d30ad3
commit 2a4ca7671e
8 changed files with 35 additions and 21 deletions

View File

@@ -26,13 +26,10 @@ const loadConfig = getLoadConfigMock();
const readChannelAllowFromStore = getReadChannelAllowFromStoreMock();
function resolveSkillCommands(config: Parameters<typeof listNativeCommandSpecsForConfig>[0]) {
return (
listSkillCommandsForAgents as unknown as (params: {
cfg: typeof config;
}) => Parameters<typeof listNativeCommandSpecsForConfig>[1]["skillCommands"]
)({
cfg: config,
});
void config;
return listSkillCommandsForAgents() as NonNullable<
Parameters<typeof listNativeCommandSpecsForConfig>[1]
>["skillCommands"];
}
const ORIGINAL_TZ = process.env.TZ;