fix: 导出QQBot配置服务给插件平台
This commit is contained in:
parent
5b22703949
commit
1796360506
@ -91,6 +91,7 @@ export const QQBOT_CORE_PROVIDERS = [
|
|||||||
|
|
||||||
export const QQBOT_CORE_EXPORTS = [
|
export const QQBOT_CORE_EXPORTS = [
|
||||||
QqbotAccountService,
|
QqbotAccountService,
|
||||||
|
QqbotConfigService,
|
||||||
QqbotSendService,
|
QqbotSendService,
|
||||||
QqbotReverseWsService,
|
QqbotReverseWsService,
|
||||||
];
|
];
|
||||||
|
|||||||
@ -39,4 +39,16 @@ describe('QQBot plugin platform DI tokens', () => {
|
|||||||
QqbotPluginPackagePathPolicyService,
|
QqbotPluginPackagePathPolicyService,
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('exports QQBot config service for plugin host bridge dependencies', () => {
|
||||||
|
const source = readFileSync(
|
||||||
|
join(process.cwd(), 'src/modules/qqbot/core/qqbot-core.module.ts'),
|
||||||
|
'utf8',
|
||||||
|
);
|
||||||
|
const exportsBlock = source.match(
|
||||||
|
/export const QQBOT_CORE_EXPORTS = \[([\s\S]*?)\];/,
|
||||||
|
)?.[1];
|
||||||
|
|
||||||
|
expect(exportsBlock).toContain('QqbotConfigService');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user