Add 82 comprehensive tests for frontmatter-utils.ts achieving 96.58% coverage. Test coverage: - extractFrontmatter(): All delimiters, line endings, parse errors, edge cases - extractFrontmatterSummary(): Field extraction, normalization, null handling - hasFrontmatter(): Quick detection with various formats - serializeFrontmatter(): All data types, special characters, quoting rules - parseExcalidrawMetadata(): JSON extraction, compression detection, error handling Mock parseYaml from obsidian module for isolated testing. Uncovered lines (253-255, 310) are unreachable defensive code paths.
27 KiB
27 KiB