ShtukbaseStandard
файл пакета→ .shtukbase/packages/live/actions/selftest.ts

actions/selftest.ts

6 строк, 436 Б.

Файл как есть в пакете: код и комментарии в нём не переводятся.

  1. // Action `selftest`: the package's test (test/live.test.ts) with `bun test`. It starts the server on a temporary
  2. // project and checks the address, the token, the schema, the contour and the allow list.
  3. import { join } from 'node:path';
  4. const p = Bun.spawnSync([process.execPath, 'test', join(import.meta.dir, '..', 'test')], { stdout: 'inherit', stderr: 'inherit', cwd: join(import.meta.dir, '..') });
  5. process.exit(p.exitCode ?? 1);