const blogAutomationService = require('./services/blogAutomationService');

(async () => {
    try {
        console.log('Testing fetchLatestNews...');
        const news = await blogAutomationService.fetchLatestNews();
        console.log('Result:', JSON.stringify(news, null, 2));
    } catch (e) {
        console.error('Error:', e);
    }
    process.exit(0);
})();
