chore(dx/server): get tests to run

This commit is contained in:
Elian Doran 2025-09-02 18:33:22 +03:00
parent 7c50251c37
commit 26afdd105f
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View File

@ -30,5 +30,5 @@ describe("etapi/import", () => {
.expect(201);
expect(response.body.note.title).toStrictEqual("Journal");
expect(response.body.branch.parentNoteId).toStrictEqual("root");
});
}, 10_000);
});

View File

@ -10,6 +10,11 @@ export default defineConfig(() => ({
globals: true,
setupFiles: ["./spec/setup.ts"],
environment: "node",
env: {
NODE_ENV: "development",
TRILIUM_DATA_DIR: "./spec/db",
TRILIUM_INTEGRATION_TEST: "memory"
},
include: ['{src,spec}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
exclude: [
"spec/build-checks/**",