包文件→ .shtukbase/packages/live/actions/selftest.ts
actions/selftest.ts
6 行, 436 B.
文件按包中的原样显示:代码及其注释不做翻译。
- // Action `selftest`: the package's test (test/live.test.ts) with `bun test`. It starts the server on a temporary
- // project and checks the address, the token, the schema, the contour and the allow list.
- import { join } from 'node:path';
- const p = Bun.spawnSync([process.execPath, 'test', join(import.meta.dir, '..', 'test')], { stdout: 'inherit', stderr: 'inherit', cwd: join(import.meta.dir, '..') });
- process.exit(p.exitCode ?? 1);