mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
chore(dx/server): get tests to run
This commit is contained in:
parent
7c50251c37
commit
26afdd105f
@ -30,5 +30,5 @@ describe("etapi/import", () => {
|
|||||||
.expect(201);
|
.expect(201);
|
||||||
expect(response.body.note.title).toStrictEqual("Journal");
|
expect(response.body.note.title).toStrictEqual("Journal");
|
||||||
expect(response.body.branch.parentNoteId).toStrictEqual("root");
|
expect(response.body.branch.parentNoteId).toStrictEqual("root");
|
||||||
});
|
}, 10_000);
|
||||||
});
|
});
|
||||||
|
@ -10,6 +10,11 @@ export default defineConfig(() => ({
|
|||||||
globals: true,
|
globals: true,
|
||||||
setupFiles: ["./spec/setup.ts"],
|
setupFiles: ["./spec/setup.ts"],
|
||||||
environment: "node",
|
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}'],
|
include: ['{src,spec}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
||||||
exclude: [
|
exclude: [
|
||||||
"spec/build-checks/**",
|
"spec/build-checks/**",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user