mttwm
Version:
Automated CSS-in-JS to Tailwind CSS migration tool for React applications
30 lines (22 loc) ⢠778 B
text/typescript
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);
});