fix(runtime): avoid loading disabled integrations

This commit is contained in:
2026-02-27 21:21:26 -08:00
parent 30a76d7767
commit db5e3f9e50
4 changed files with 287 additions and 31 deletions

View File

@@ -209,6 +209,24 @@ test('AnkiIntegration.refreshKnownWordCache deduplicates concurrent refreshes',
}
});
test('AnkiIntegration does not allocate proxy server when proxy transport is disabled', () => {
const integration = new AnkiIntegration(
{
enabled: true,
proxy: {
enabled: false,
},
} as never,
{} as never,
{} as never,
);
const privateState = integration as unknown as {
proxyServer: unknown | null;
};
assert.equal(privateState.proxyServer, null);
});
test('FieldGroupingMergeCollaborator synchronizes ExpressionAudio from merged SentenceAudio', async () => {
const collaborator = createFieldGroupingMergeCollaborator();