mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-06-14 10:20:15 +00:00
295dc1392a
- Fixed an issue where using fast synchronisation caused a TypeError in some environments (#953).
26 lines
957 B
TypeScript
26 lines
957 B
TypeScript
/**
|
|
* @file vitest.config.integration.ts
|
|
* @description Configuration for running database integration tests in Node.js against a real CouchDB instance
|
|
* (e.g. testing streaming changes, database connectivity, and replication status checks).
|
|
* This is executed via `npm run test:integration` during development and is run in the GitHub Actions `unit-ci` workflow.
|
|
*/
|
|
import { defineConfig, mergeConfig } from "vitest/config";
|
|
import viteConfig from "./vitest.config.common";
|
|
|
|
export default mergeConfig(
|
|
viteConfig,
|
|
defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
obsidian: "", // prevent accidental imports of obsidian types in integration tests
|
|
},
|
|
},
|
|
test: {
|
|
logHeapUsage: true,
|
|
name: "integration-tests",
|
|
include: ["**/*.integration.spec.ts", "**/*.integration.test.ts"],
|
|
exclude: ["test/**", "src/apps/**/testdeno/**"],
|
|
},
|
|
})
|
|
);
|