Files
endorphin-tabularium-docs/apps/docs/scripts/test-research.mjs
codex-bot 1250b674b0
Verify and deploy Tabularium / verify-and-deploy (pull_request) Failing after 5m57s
Add AI company research workbench backed by the shared site database
2026-10-30 03:25:38 +08:00

15 lines
658 B
JavaScript

import { build } from "esbuild";
import { mkdtemp, rm } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { spawnSync } from "node:child_process";
const dir = await mkdtemp(join(tmpdir(), "tabularium-research-tests-"));
try {
const file = join(dir, "research.test.cjs");
await build({ entryPoints: ["tests/research.test.ts"], bundle: true,
platform: "node", target: "node22", format: "cjs", outfile: file });
const result = spawnSync(process.execPath, ["--test", file], { stdio: "inherit" });
process.exitCode = result.status ?? 1;
} finally { await rm(dir, { recursive: true, force: true }); }