// Node wrapper (marketplace convention: node --test) around the bash // selftest, which owns every mailbox assertion. The selftest runs against a // throwaway mailbox (mktemp) and exits non-zero on any failing check. import { test } from 'node:test'; import { execFileSync } from 'node:child_process'; import { dirname, join } from 'node:path'; import { fileURLToPath } from 'node:url'; const root = join(dirname(fileURLToPath(import.meta.url)), '..'); test('coord bash selftest passes', () => { execFileSync('bash', [join(root, 'scripts', 'coord-selftest.sh')], { encoding: 'utf8' }); });