mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-11-01 05:48:18 +00:00
Run the CLI subprocess suites and benchmark tools as native TypeScript with node:test, and move them under test/e2e-cli. Update CI and Compose runners, run local smoke tests on Linux, macOS, and Windows, and collect source-mapped CLI coverage with c8.
26 lines
930 B
TypeScript
26 lines
930 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/**"],
|
|
},
|
|
})
|
|
);
|