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.
16 lines
345 B
TypeScript
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;
|
|
});
|