Skip to content

Build your personal knowledge base with Trilium Notes

build(standalone): give core specs the server's timeouts

Elian Doran132c88fdbc97
diff --git a/apps/standalone/vite.config.mts b/apps/standalone/vite.config.mts
index 1ff240e653..a30c6454eb 100644
--- a/apps/standalone/vite.config.mts
+++ b/apps/standalone/vite.config.mts
@@ -504,6 +504,9 @@ export default defineConfig(() => ({
test: {
name: "core",
include: ["../../packages/trilium-core/src/**/*.{test,spec}.{ts,tsx}"],
+ // The same timeouts as the server runner, which runs these specs too.
+ hookTimeout: 20_000,
+ testTimeout: 40_000,
environment: join(__dirname, "src/test_environment_worker.ts"),
alias: {
// The specs make their test images with Jimp, whose `browser` entry is an empty stub.