@a-company/portal-manager
v0.1.0
Published
Portal testing and validation system
Maintainers
Readme
@a-company/portal-manager
Gate testing and validation system
Test and validate your gate configurations to ensure authorization rules work as expected.
Installation
npm install @a-company/portal-managerUsage
import {
generateTests,
runGatewayTests,
scanComponents
} from '@a-company/portal-manager';
// Generate test cases from portal config
const tests = await generateTests('./portal.yaml');
// Run the tests
const results = await runGatewayTests(tests);
// Check results
for (const result of results) {
console.log(`${result.gate}: ${result.passed ? 'PASS' : 'FAIL'}`);
}Component Scanning
// Scan codebase for gate usage
const report = await scanComponents('./src', './portal.yaml');
// Find unused gates
console.log('Unused gates:', report.unusedGates);
// Find undeclared gate references
console.log('Undeclared:', report.undeclaredReferences);Documentation
See the main repository for full documentation.
License
MIT
