obsidian-plugin-confidential/test/setup.ts
Felipe M. 553e088ffd
chore: scaffold Confidential plugin with bun-based toolchain
Boilerplate derived from obsidianmd/obsidian-sample-plugin, adapted to
mirror obsidian-plugin-auto-task-status: bun scripts, esbuild with
git-tag versioning, prettier/eslint/jest, husky pre-commit, Forgejo
CI/release workflows, and vault install/symlink helpers.
2026-04-18 11:55:02 +02:00

16 lines
345 B
TypeScript

// Global test setup
// Mock console methods if needed
beforeEach(() => {
jest.clearAllMocks();
});
// Suppress console.error during tests unless explicitly testing error conditions
const originalConsoleError = console.error;
beforeEach(() => {
console.error = jest.fn();
});
afterEach(() => {
console.error = originalConsoleError;
});