14 lines
341 B
TypeScript
14 lines
341 B
TypeScript
import { run } from 'node:test';
|
|
import { globSync } from 'node:fs';
|
|
import { spec } from 'node:test/reporters';
|
|
|
|
const files = globSync('src/**/*.test.ts');
|
|
|
|
if (files.length === 0) {
|
|
console.error('❌ No test files found in src/**/*.test.ts');
|
|
process.exit(1);
|
|
}
|
|
|
|
run({ files })
|
|
.compose(new spec())
|
|
.pipe(process.stdout); |