adpa-enterprise-framework-automation
Version:
Modular, standards-compliant Node.js/TypeScript automation framework for enterprise requirements, project, and data management. Provides CLI and API for BABOK v3, PMBOK 7th Edition, and DMBOK 2.0 (in progress). Production-ready Express.js API with TypeSpe
37 lines โข 1.56 kB
JavaScript
/**
* Basic functionality tests for Requirements Gathering Agent
*/
import { generateStrategicSections, generateRequirements, version } from '../index.js';
async function runBasicTests() {
console.log(`๐งช Testing Requirements Gathering Agent v${version}`);
const testInput = {
businessProblem: 'Need a simple task management application',
technologyStack: ['TypeScript', 'React', 'Node.js'],
contextBundle: 'Basic task management for small teams'
};
try {
console.log('โ
Package imports successfully');
// Test strategic sections generation (without AI if no credentials)
console.log('๐ Testing strategic sections generation...');
const strategic = await generateStrategicSections(testInput);
console.log('โ
Strategic sections function callable');
// Test requirements generation (without AI if no credentials)
console.log('๐ Testing requirements generation...');
const requirements = await generateRequirements(testInput);
console.log('โ
Requirements function callable');
console.log('๐ All basic tests passed!');
return true;
}
catch (error) {
console.error('โ Test failed:', error);
return false;
}
}
// Run tests if this file is executed directly
if (import.meta.url === `file://${process.argv[1]}`) {
runBasicTests()
.then(success => process.exit(success ? 0 : 1))
.catch(() => process.exit(1));
}
export { runBasicTests };
//# sourceMappingURL=basic-test.js.map