Commit graph

3 commits

Author SHA1 Message Date
Lukas Wolfsteiner
ad2baee012 test: cover show and hide parsing and field resolution
Verify parsing of show and hide block options, including casing, duplicates and unknown field warnings.

Verify display field resolution layers show before hide and leaves the defaults untouched.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 11:32:36 +02:00
Lukas Wolfsteiner
c22dc1f969 build: modernize TypeScript and esbuild configuration
Set compile and bundle target to ES2021 since Obsidian runs on modern Electron.
Replace individual strict flags with strict: true and add noFallthroughCasesInSwitch, skipLibCheck and forceConsistentCasingInFileNames.
Switch module resolution to bundler, removing the need for deprecation workarounds on TypeScript 6.
Drop baseUrl, allowJs and importHelpers; tests now import sources via relative paths.
Aligns the project with the modernized obsidian-sample-plugin configuration.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-06 11:20:56 +02:00
Lukas Wolfsteiner
877b75ddc5 feat: add testing framework and initial test cases
- Introduce Jest as the testing framework and configure it for the project.
- Add initial test cases for block and note parsing functionalities.
- Update ESLint configuration to include test files and adjust global settings.
- Modify package.json to include test scripts and dependencies for Jest.
- Enhance GitHub workflows to run tests during linting and release processes.
2026-05-02 01:33:06 +02:00