22 lines
487 B
JavaScript
22 lines
487 B
JavaScript
/**
|
|
* Test Directus Connection
|
|
* Verifies that we can connect to the Directus instance
|
|
*/
|
|
|
|
const { testConnection } = require('../scripts/utils/directus-client');
|
|
|
|
async function main() {
|
|
console.log('🔌 Testing Directus connection...\n');
|
|
|
|
const isConnected = await testConnection();
|
|
|
|
if (isConnected) {
|
|
console.log('\n✅ Connection test passed!');
|
|
process.exit(0);
|
|
} else {
|
|
console.log('\n❌ Connection test failed!');
|
|
process.exit(1);
|
|
}
|
|
}
|
|
|
|
main(); |