mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-12 06:06:37 +03:00
Merge pull request #120 from vinaypokharkar/feature/qoder-support
feat: add Qoder harness support
This commit is contained in:
@@ -19,6 +19,11 @@ describe('download provider validation', () => {
|
||||
expect(isAllowedFileProvider('github')).toBe(true);
|
||||
});
|
||||
|
||||
test('allows qoder as an individual download provider', () => {
|
||||
expect(ALLOWED_FILE_PROVIDERS).toContain('qoder');
|
||||
expect(isAllowedFileProvider('qoder')).toBe(true);
|
||||
});
|
||||
|
||||
test('separates file downloads from bundle downloads', () => {
|
||||
expect(ALLOWED_BUNDLE_PROVIDERS).toContain('universal');
|
||||
expect(isAllowedBundleProvider('universal')).toBe(true);
|
||||
@@ -46,6 +51,12 @@ describe('download file paths', () => {
|
||||
);
|
||||
});
|
||||
|
||||
test('maps qoder skills into the .qoder config directory', () => {
|
||||
expect(getFilePath('skill', 'qoder', 'impeccable')).toBe(
|
||||
path.join(process.cwd(), 'dist', 'qoder', '.qoder', 'skills', 'impeccable', 'SKILL.md')
|
||||
);
|
||||
});
|
||||
|
||||
test('rejects bundle-only providers on the individual download route', async () => {
|
||||
const response = await handleFileDownload('skill', 'universal', 'impeccable');
|
||||
expect(response.status).toBe(400);
|
||||
|
||||
Reference in New Issue
Block a user