linkify.test.runner.ts
1// Test runner for linkify tests - can be run with tsx/ts-node
2import { runTests } from "./linkify.test";
3
4const { passed, failed, failures } = runTests();
5
6console.log(`\nLinkify Tests: ${passed} passed, ${failed} failed\n`);
7
8if (failures.length > 0) {
9 console.log("Failures:");
10 for (const f of failures) {
11 console.log(f);
12 console.log("");
13 }
14 process.exit(1);
15}
16
17console.log("All tests passed!");
18process.exit(0);