Note:shard is used to horizontally parallelize test running across
machines or processes, ideal for large-scale executions across varied
environments. It's incompatible with watch mode, tailored for rapid
code iteration by automatically rerunning tests on file changes.
import { tap } from'node:test/reporters'; import { run } from'node:test'; importprocessfrom'node:process'; importpathfrom'node:path';
Note:
shard
is used to horizontally parallelize test running across machines or processes, ideal for large-scale executions across varied environments. It's incompatible withwatch
mode, tailored for rapid code iteration by automatically rerunning tests on file changes.