Skip to content

fix: issues with theme and icon title inline #215

fix: issues with theme and icon title inline

fix: issues with theme and icon title inline #215

Triggered via push May 4, 2024 13:21
Status Failure
Total duration 26s
Artifacts

unit-test.yml

on: push
cache-and-install
18s
cache-and-install
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 1 warning
cache-and-install
Failed to parse the json-summary at path "/home/runner/work/obsidian-iconize/obsidian-iconize/coverage/coverage-summary.json." Make sure to run vitest before this action and to include the "json-summary" reporter. Original Error: Error: ENOENT: no such file or directory, open '/home/runner/work/obsidian-iconize/obsidian-iconize/coverage/coverage-summary.json'
cache-and-install
Error: ENOENT: no such file or directory, open '/home/runner/work/obsidian-iconize/obsidian-iconize/coverage/coverage-summary.json'
src/lib/icon-title.test.ts > add > should create a title icon: src/lib/icon-title.ts#L56
TypeError: plugin.getSettings is not a function ❯ Object.add src/lib/icon-title.ts:56:12 ❯ src/lib/icon-title.test.ts:12:15
src/lib/icon-title.test.ts > add > should create a title icon with a font size when the passed in element is not an svg element: src/lib/icon-title.test.ts#L35
Error: Snapshot `add > should create a title icon with a font size when the passed in element is not an svg element 1` mismatched - Expected + Received <div> - <div - class="iconize-title-icon" - style="display: block; font-size: 10px;" - > - 👍 - </div> <div /> </div> ❯ src/lib/icon-title.test.ts:35:22
src/lib/icon-title.test.ts > add > should update the title icon when the title icon already exist: src/lib/icon-title.ts#L56
TypeError: plugin.getSettings is not a function ❯ Object.add src/lib/icon-title.ts:56:12 ❯ src/lib/icon-title.test.ts:54:15
src/lib/icon-title.test.ts > add > should call `svg.setFontSize if the `fontSize` option is provided: src/lib/icon-title.ts#L56
TypeError: plugin.getSettings is not a function ❯ Object.add src/lib/icon-title.ts:56:12 ❯ src/lib/icon-title.test.ts:74:15
cache-and-install
Process completed with exit code 1.
cache-and-install
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, pnpm/action-setup@v2, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.