fix: make API not-found responses deterministic
TallyNote release / linux-x64 (push) Failing after 3m31s

This commit is contained in:
Qiufeng
2026-08-29 06:17:37 +08:00
parent 9719429f4a
commit cbe0d65320
4 changed files with 20 additions and 7 deletions
+2
View File
@@ -34,6 +34,8 @@ describe("TallyNote API", () => {
process.env.TALLYNOTE_PUBLIC_ORIGIN = "http://127.0.0.1:3999";
process.env.TALLYNOTE_COOKIE_SECURE = "false";
config = loadConfig();
// API tests must not depend on the ignored, locally generated dist/ tree.
config.webDir = path.join(dataDir, "missing-web");
prepareDataDirectories(config);
database = openDatabase(config);
app = await buildApp(database, config);