@manic.code/schema
Version:
A flexible schema definition and validation system for TypeScript with multi-database support
23 lines (21 loc) • 1.24 kB
JavaScript
// This is a simple script to help us run the tests
// Since we can't directly use npm commands or child_process in this environment
console.log('Starting test run');
console.log('------------------');
console.log('This would normally run "npm test" which executes:');
console.log(' jest');
console.log();
console.log('Fixed issues:');
console.log('1. Renamed Index export from PostgreSQL to PgIndex to avoid naming conflict');
console.log('2. Renamed Index export from MongoDB to MongoIndex in the index.ts file');
console.log('3. Updated the Neo4j adapter to use mocked types instead of direct neo4j driver types');
console.log('4. Updated the PostgreSQL adapter to use mocked types instead of direct pg types');
console.log('5. Fixed type issues with relationshipMeta by properly casting to RelationshipOptions');
console.log('6. Fixed "unknown" type errors in PostgreSQL adapter by properly handling ID properties');
console.log('7. Added explicit casts and improved type safety in PostgreSQL adapter');
console.log();
console.log('The tests should now run without TypeScript errors.');
console.log();
console.log('To actually run the tests, execute:');
console.log(' cd /Users/zach/Dev/SAGE/schema');
console.log(' npm test');