implement toc processing #2405
Annotations
4 errors and 1 warning
Run unit tests:
src/commands/build/core/toc/index.spec.ts#L55
Error: Snapshot `toc-loader > includes > should rebase items href for includes in link mode 1` mismatched
- Expected
+ Received
"items:
- name: Outer Item
items:
- name: Inner Item 1
- href: _includes/core/item-1.md
+ href: _includes\core\item-1.md
items:
- name: Inner Sub Item 1
- href: _includes/core/sub-item-1.md
+ href: _includes\core\sub-item-1.md
- name: Inner Item 2
- href: _includes/core/item-2.md
+ href: _includes\core\item-2.md
- name: Inner Item 3
- href: _includes/core/sub/item-3.md
+ href: _includes\core\sub\item-3.md
- name: Inner Item 4
- href: _includes/core/sub/item-4.md
+ href: _includes\core\sub\item-4.md
- name: Inner Item 5
- href: _includes/item-5.md
+ href: _includes\item-5.md
- name: Inner Item 6
href: https://example.com
- name: Inner Item 7
href: //example.com
"
❯ src/commands/build/core/toc/index.spec.ts:55:34
|
Run unit tests:
src/commands/build/core/toc/index.spec.ts#L55
Error: Snapshot `toc-loader > includes > should merge deep includes in link mode 1` mismatched
- Expected
+ Received
"items:
- name: Outer Item
items:
- name: Inner Item 1
- href: _includes/core/item-1.md
+ href: _includes\core\item-1.md
- name: Inner Item 2
items:
- name: Inner Lib Item 1
- href: _includes/lib/item-1.md
+ href: _includes\lib\item-1.md
"
❯ src/commands/build/core/toc/index.spec.ts:55:34
|
Run unit tests:
src/commands/build/core/toc/index.spec.ts#L55
Error: Snapshot `toc-loader > includes > should merge deep includes in merge mode 1` mismatched
- Expected
+ Received
"items:
- name: Outer Item
items:
- name: Inner Item 1
- href: _includes/core/item-1.md
+ href: _includes\core\item-1.md
- name: Inner Item 2
items:
- name: Inner Merge Item 1
- href: _includes/core/merge-item-1.md
+ href: _includes\core\merge-item-1.md
- name: Inner Deep Merge Item 1
- href: _includes/core/deep-merge-item-1.md
+ href: _includes\core\deep-merge-item-1.md
- name: Inner Sub Item 1
- href: _includes/core/sub-item-1.md
+ href: _includes\core\sub-item-1.md
"
❯ src/commands/build/core/toc/index.spec.ts:55:34
|
Run unit tests
Process completed with exit code 1.
|
Use Node.js 18.x
Unexpected input(s) 'os', valid inputs are ['always-auth', 'node-version', 'node-version-file', 'architecture', 'check-latest', 'registry-url', 'scope', 'token', 'cache', 'cache-dependency-path', 'version']
|
Loading