UNPKG

mttwm

Version:

Automated CSS-in-JS to Tailwind CSS migration tool for React applications

30 lines (22 loc) • 778 B
#!/usr/bin/env tsx import { MigrationTestRunner } from './migration-test-runner.js'; async function main() { const testDir = process.argv[2] || '__tests__/integration/migration-tests'; console.log(`šŸ” Discovering tests in ${testDir}...`); const runner = new MigrationTestRunner(); await runner.discoverTests(testDir); const results = await runner.runAllTests(); runner.printSummary(results); const failedCount = results.filter(r => !r.passed).length; if (failedCount > 0) { console.log(`\nšŸ’„ ${failedCount} tests failed!`); process.exit(1); } else { console.log(`\nšŸŽ‰ All tests passed!`); process.exit(0); } } main().catch(error => { console.error('āŒ Error running migration tests:', error); process.exit(1); });