// engine/test-scaffold-generator/helpers.ts — String utilities and framework helpers
// SPEC-018
export function toPascal(str) {
    return str
        .replace(/[^a-zA-Z0-9\s]/g, '')
        .split(/\s+/)
        .map((w) => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase())
        .join('');
}
export function toSnake(str) {
    return str.toLowerCase().replace(/[^a-z0-9]/g, '_');
}
export function getFrameworkExt(framework) {
    const extMap = {
        pytest: 'py',
        junit: 'java',
        xunit: 'cs',
        rspec: 'rb',
        'go-test': 'go',
    };
    return extMap[framework] ?? 'ts';
}
export function getFrameworkRunCommand(framework) {
    const commandMap = {
        vitest: 'npx vitest run',
        jest: 'npx jest',
        mocha: 'npx mocha',
        pytest: 'python -m pytest',
        junit: 'mvn test',
        xunit: 'dotnet test',
        rspec: 'bundle exec rspec',
        'go-test': 'go test ./...',
    };
    return commandMap[framework];
}
//# sourceMappingURL=helpers.js.map