refactor(skill): remove cargo preset limitations and related test cases

This commit is contained in:
xixu-me committed 2026-03-15 15:47:42 +08:00
1 parent d26992c940
commit c8e8d2b76e
4 files changed
+2 -32

No files matched your search

-10
View File
@@ -73,15 +73,5 @@ describe('xget skill helpers', () => {
'Only add "pip config set global.trusted-host xget.example.com" when the deployment really needs it.'
);
});
it('returns an explicit unsupported notice for cargo instead of a broken config file', () => {
const snippet = createSnippet(BASE_URL, 'cargo');
expect(snippet.supported).toBe(false);
expect(snippet.files).toBeUndefined();
expect(snippet.notes).toContain(
'Do not generate ~/.cargo/config.toml source replacement entries until Xget provides a registry index endpoint.'
);
});
});
});