mirror of
https://github.com/jsmorabito/obsidian-commander.git
synced 2026-07-22 06:40:31 +00:00
Adds coverage for executeMacro, injectIcons, isModeActive, updateStyles/ removeStyles, and locale completeness, plus the Obsidian API mocks and setup needed to run them under jsdom. Updates a stale fr.json key to match the current English source string.
26 lines
537 B
TypeScript
26 lines
537 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
import path from "path";
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
environment: "jsdom",
|
|
globals: false,
|
|
setupFiles: ["src/__tests__/setup.ts"],
|
|
},
|
|
resolve: {
|
|
alias: [
|
|
{
|
|
find: "obsidian",
|
|
replacement: path.resolve(__dirname, "src/__tests__/__mocks__/obsidian.ts"),
|
|
},
|
|
{
|
|
find: /.*\/l10n$/,
|
|
replacement: path.resolve(__dirname, "src/__tests__/__mocks__/l10n.ts"),
|
|
},
|
|
{
|
|
find: "src",
|
|
replacement: path.resolve(__dirname, "src"),
|
|
},
|
|
],
|
|
},
|
|
});
|