- MCP
- code on this site's /mcp
- CLI
- none: the JSON below is the answer
- JSON
- /christopher/abso-core/files/client/test/setup.ts?draft=login-timeout&format=json
13 linesreview 100%0 versions changed it
1// Loaded before every test file (npm test: node --import). New folders are made as .abso or .avcs by what mods
2// are installed (state-dir.ts newFolderDir), so a test must not read this machine's ~/.claude: it gets a Claude
3// folder with one mod from before the rename installed, which keeps new folders on .avcs. The tests of that
4// choice (new-folder-dir.test.ts) pass their own folders.
5import { mkdirSync, mkdtempSync, writeFileSync } from "node:fs";
6import { tmpdir } from "node:os";
7import { join } from "node:path";
9const claude = mkdtempSync(join(tmpdir(), "abso-test-claude-"));
10const mod = join(claude, "skills", "avcs");
11mkdirSync(mod, { recursive: true });
12writeFileSync(join(mod, ".avcs-install.json"), JSON.stringify({ mod: "avcs", version: "0.1.0+0000000" }));
13process.env.CLAUDE_CONFIG_DIR = claude;