UNPKG

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
/** * 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