UNPKG

dev-with-debug

Version:

Auto-start Chrome-based dev server with debugging enabled, streaming LLM-friendly error output

32 lines (26 loc) 905 B
const DevWithDebug = require('./index.js'); // Simple test to ensure the class can be instantiated function test() { console.log('Running basic tests...'); try { const debug = new DevWithDebug(); console.log('✅ DevWithDebug class instantiated successfully'); // Test dev command detection (will fail if no package.json in test env, which is expected) try { const command = debug.detectDevCommand(); console.log('✅ Dev command detection works:', command); } catch (err) { console.log('ℹ️ Dev command detection correctly throws when no package.json present'); } console.log('✅ All basic tests passed'); return true; } catch (error) { console.error('❌ Test failed:', error.message); return false; } } if (require.main === module) { const passed = test(); process.exit(passed ? 0 : 1); } module.exports = test;