mirror of
https://github.com/lovell/sharp.git
synced 2025-12-06 12:01:41 +01:00
17 lines
384 B
JavaScript
17 lines
384 B
JavaScript
import { readdir } from 'node:fs/promises';
|
|
import { run } from 'node:test';
|
|
import { spec } from 'node:test/reporters';
|
|
|
|
const files = (await readdir('./test/unit')).map((f) => `./test/unit/${f}`);
|
|
|
|
run({
|
|
files,
|
|
concurrency: true,
|
|
timeout: 60000,
|
|
coverage: true,
|
|
coverageIncludeGlobs: ['lib/*.js'],
|
|
branchCoverage: 100,
|
|
})
|
|
.compose(new spec())
|
|
.pipe(process.stdout);
|