mirror of
https://github.com/zadam/trilium.git
synced 2026-02-03 20:34:24 +01:00
Some checks failed
Checks / main (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
Dev / Test development (push) Waiting to run
Dev / Build Docker image (push) Blocked by required conditions
Dev / Check Docker build (Dockerfile) (push) Blocked by required conditions
Dev / Check Docker build (Dockerfile.alpine) (push) Blocked by required conditions
/ Check Docker build (Dockerfile) (push) Waiting to run
/ Check Docker build (Dockerfile.alpine) (push) Waiting to run
/ Build Docker images (Dockerfile, ubuntu-24.04-arm, linux/arm64) (push) Blocked by required conditions
/ Build Docker images (Dockerfile.alpine, ubuntu-latest, linux/amd64) (push) Blocked by required conditions
/ Build Docker images (Dockerfile.legacy, ubuntu-24.04-arm, linux/arm/v7) (push) Blocked by required conditions
/ Build Docker images (Dockerfile.legacy, ubuntu-24.04-arm, linux/arm/v8) (push) Blocked by required conditions
/ Merge manifest lists (push) Blocked by required conditions
playwright / E2E tests on linux-arm64 (push) Waiting to run
playwright / E2E tests on linux-x64 (push) Waiting to run
Deploy web clipper extension / Build web clipper extension (push) Has been cancelled
35 lines
819 B
TypeScript
35 lines
819 B
TypeScript
/// <reference types='vitest' />
|
|
import { defineConfig } from 'vite';
|
|
|
|
export default defineConfig(() => ({
|
|
root: __dirname,
|
|
cacheDir: '../../node_modules/.vite/apps/server',
|
|
plugins: [],
|
|
test: {
|
|
watch: false,
|
|
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/**",
|
|
],
|
|
hookTimeout: 20000,
|
|
reporters: [
|
|
"verbose"
|
|
],
|
|
coverage: {
|
|
reportsDirectory: './test-output/vitest/coverage',
|
|
provider: 'v8' as const,
|
|
reporter: [ "text", "html" ]
|
|
},
|
|
pool: "vmForks",
|
|
maxWorkers: 4
|
|
},
|
|
}));
|