mirror of
https://github.com/yamadashy/repomix.git
synced 2026-11-20 06:29:20 +01:00
intent(pack-spec-config): multiRootSpec and securityScanSpec carried identical buildMergedConfig copies decision(pack-spec-config): move it to tests/testing/packSpecConfig.ts as buildPackSpecConfig with style defaulting to xml rejected(pack-spec-config): adding it to testUtils.ts, that would pull configLoad into every test importing testUtils rejected(processed-file-fixtures): sharing createMockProcessedFiles between jsonStyle and packSkill tests, the file lists are test-specific data (different files and contents that each suite asserts on) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
22 lines
758 B
TypeScript
22 lines
758 B
TypeScript
import { mergeConfigs } from '../../src/config/configLoad.js';
|
|
import type { RepomixConfigFile, RepomixConfigMerged, RepomixOutputStyle } from '../../src/config/configSchema.js';
|
|
|
|
/**
|
|
* Build a fully merged config for the real-pipeline pack spec tests: the given
|
|
* output file and style, with every git feature off so the spec never shells out
|
|
* to git against its tmpdir fixture.
|
|
*/
|
|
export const buildPackSpecConfig = (
|
|
cwd: string,
|
|
outputFilePath: string,
|
|
style: RepomixOutputStyle = 'xml',
|
|
overrides: Partial<RepomixConfigFile> = {},
|
|
): RepomixConfigMerged =>
|
|
mergeConfigs(cwd, overrides, {
|
|
output: {
|
|
filePath: outputFilePath,
|
|
style,
|
|
git: { sortByChanges: false, includeDiffs: false, includeLogs: false },
|
|
},
|
|
});
|