Resolve CultLib via VOIDBOT_CULTLIB_ROOT in tests; test formerly indexed stores (#47)

This commit is contained in:
Heimdall 2026-11-11 05:01:33 +00:00
commit 4e86c33cd2
8 changed files with 108 additions and 10 deletions

5
tests/cultlib-root.mjs Normal file
View file

@ -0,0 +1,5 @@
import { resolve } from "node:path";
// The CultLib checkout the tests load at run time, as the tools resolve it:
// $VOIDBOT_CULTLIB_ROOT, else the sibling ../CultLib. Its dist/ is gitignored; build it there first.
export const cultLibRoot = resolve(process.env.VOIDBOT_CULTLIB_ROOT || resolve(import.meta.dirname, "..", "..", "CultLib"));