Skip to content

fix(app): handle item prefix as string #477

fix(app): handle item prefix as string

fix(app): handle item prefix as string #477

Triggered via pull request November 11, 2025 09:49
Status Failure
Total duration 1m 21s
Artifacts

module.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

10 errors
src/app/test/unit/utils/tree.test.ts > buildTree of documents with two levels of depth > With one level of depth draft files: src/app/test/unit/utils/tree.test.ts#L371
AssertionError: expected [ { name: 'essentials', …(6) } ] to strictly equal [ { name: 'essentials', …(6) } ] - Expected + Received @@ -5,11 +5,11 @@ "collections": [ "docs", ], "fsPath": "1.essentials/2.configuration.md", "name": "configuration", - "prefix": 2, + "prefix": "2", "routePath": "/essentials/configuration", "status": "updated", "type": "file", }, { @@ -18,29 +18,29 @@ "collections": [ "docs", ], "fsPath": "1.essentials/1.nested/2.advanced.md", "name": "advanced", - "prefix": 2, + "prefix": "2", "routePath": "/essentials/nested/advanced", "type": "file", }, ], "collections": [ "docs", ], "fsPath": "1.essentials/1.nested", "name": "nested", - "prefix": 1, + "prefix": "1", "type": "directory", }, ], "collections": [ "docs", ], "fsPath": "1.essentials", "name": "essentials", - "prefix": 1, + "prefix": "1", "status": "updated", "type": "directory", }, ] ❯ src/app/test/unit/utils/tree.test.ts:371:18
src/app/test/unit/utils/tree.test.ts > buildTree of documents with two levels of depth > Without draft: src/app/test/unit/utils/tree.test.ts#L349
AssertionError: expected [ { name: 'essentials', …(5) } ] to strictly equal [ { name: 'essentials', …(5) } ] - Expected + Received @@ -5,11 +5,11 @@ "collections": [ "docs", ], "fsPath": "1.essentials/2.configuration.md", "name": "configuration", - "prefix": 2, + "prefix": "2", "routePath": "/essentials/configuration", "type": "file", }, { "children": [ @@ -17,28 +17,28 @@ "collections": [ "docs", ], "fsPath": "1.essentials/1.nested/2.advanced.md", "name": "advanced", - "prefix": 2, + "prefix": "2", "routePath": "/essentials/nested/advanced", "type": "file", }, ], "collections": [ "docs", ], "fsPath": "1.essentials/1.nested", "name": "nested", - "prefix": 1, + "prefix": "1", "type": "directory", }, ], "collections": [ "docs", ], "fsPath": "1.essentials", "name": "essentials", - "prefix": 1, + "prefix": "1", "type": "directory", }, ] ❯ src/app/test/unit/utils/tree.test.ts:349:18
src/app/test/unit/utils/tree.test.ts > buildTree of documents with one level of depth > With same id DELETED and CREATED draft file resulting in RENAMED: src/app/test/unit/utils/tree.test.ts#L287
AssertionError: expected [ { name: 'home', …(5) }, …(1) ] to strictly equal [ { name: 'home', …(5) }, …(1) ] - Expected + Received @@ -15,31 +15,31 @@ "collections": [ "docs", ], "fsPath": "1.getting-started/3.installation.md", "name": "installation", - "prefix": 3, + "prefix": "3", "routePath": "/getting-started/installation", "type": "file", }, { "collections": [ "docs", ], "fsPath": "1.getting-started/2.renamed.md", "name": "renamed", - "prefix": 2, + "prefix": "2", "routePath": "/getting-started/renamed", "status": "renamed", "type": "file", }, ], "collections": [ "docs", ], "fsPath": "1.getting-started", "name": "getting-started", - "prefix": 1, + "prefix": "1", "status": "updated", "type": "directory", }, ] ❯ src/app/test/unit/utils/tree.test.ts:287:18
src/app/test/unit/utils/tree.test.ts > buildTree of documents with one level of depth > With OPENED draft files in existing directory (directory status is not set): src/app/test/unit/utils/tree.test.ts#L254
AssertionError: expected [ { name: 'home', …(5) }, …(1) ] to strictly equal [ { name: 'home', …(5) }, …(1) ] - Expected + Received @@ -15,31 +15,31 @@ "collections": [ "docs", ], "fsPath": "1.getting-started/2.introduction.md", "name": "introduction", - "prefix": 2, + "prefix": "2", "routePath": "/getting-started/introduction", "status": "opened", "type": "file", }, { "collections": [ "docs", ], "fsPath": "1.getting-started/3.installation.md", "name": "installation", - "prefix": 3, + "prefix": "3", "routePath": "/getting-started/installation", "status": "opened", "type": "file", }, ], "collections": [ "docs", ], "fsPath": "1.getting-started", "name": "getting-started", - "prefix": 1, + "prefix": "1", "type": "directory", }, ] ❯ src/app/test/unit/utils/tree.test.ts:254:18
src/app/test/unit/utils/tree.test.ts > buildTree of documents with one level of depth > With CREATED and OPENED draft files in exsiting directory (directory status is set): src/app/test/unit/utils/tree.test.ts#L218
AssertionError: expected [ { name: 'home', …(5) }, …(1) ] to strictly equal [ { name: 'home', …(5) }, …(1) ] - Expected + Received @@ -15,32 +15,32 @@ "collections": [ "docs", ], "fsPath": "1.getting-started/2.introduction.md", "name": "introduction", - "prefix": 2, + "prefix": "2", "routePath": "/getting-started/introduction", "status": "created", "type": "file", }, { "collections": [ "docs", ], "fsPath": "1.getting-started/3.installation.md", "name": "installation", - "prefix": 3, + "prefix": "3", "routePath": "/getting-started/installation", "status": "opened", "type": "file", }, ], "collections": [ "docs", ], "fsPath": "1.getting-started", "name": "getting-started", - "prefix": 1, + "prefix": "1", "status": "updated", "type": "directory", }, ] ❯ src/app/test/unit/utils/tree.test.ts:218:18
src/app/test/unit/utils/tree.test.ts > buildTree of documents with one level of depth > With UPDATED draft file in existing directory (directory status is set): src/app/test/unit/utils/tree.test.ts#L183
AssertionError: expected [ { name: 'home', …(5) }, …(1) ] to strictly equal [ { name: 'home', …(5) }, …(1) ] - Expected + Received @@ -15,31 +15,31 @@ "collections": [ "docs", ], "fsPath": "1.getting-started/2.introduction.md", "name": "introduction", - "prefix": 2, + "prefix": "2", "routePath": "/getting-started/introduction", "status": "updated", "type": "file", }, { "collections": [ "docs", ], "fsPath": "1.getting-started/3.installation.md", "name": "installation", - "prefix": 3, + "prefix": "3", "routePath": "/getting-started/installation", "type": "file", }, ], "collections": [ "docs", ], "fsPath": "1.getting-started", "name": "getting-started", - "prefix": 1, + "prefix": "1", "status": "updated", "type": "directory", }, ] ❯ src/app/test/unit/utils/tree.test.ts:183:18
src/app/test/unit/utils/tree.test.ts > buildTree of documents with one level of depth > With DELETED draft file in non existing directory: src/app/test/unit/utils/tree.test.ts#L128
AssertionError: expected [ { name: 'home', …(5) }, …(1) ] to strictly equal [ { name: 'home', …(5) }, …(1) ] - Expected + Received @@ -15,31 +15,31 @@ "collections": [ "docs", ], "fsPath": "1.getting-started/2.introduction.md", "name": "introduction", - "prefix": 2, + "prefix": "2", "routePath": "/getting-started/introduction", "type": "file", }, { "collections": [ "docs", ], "fsPath": "1.getting-started/3.installation.md", "name": "installation", - "prefix": 3, + "prefix": "3", "routePath": "/getting-started/installation", "status": "deleted", "type": "file", }, ], "collections": [ "docs", ], "fsPath": "1.getting-started", "name": "getting-started", - "prefix": 1, + "prefix": "1", "status": "updated", "type": "directory", }, ] ❯ src/app/test/unit/utils/tree.test.ts:128:18
src/app/test/unit/utils/tree.test.ts > buildTree of documents with one level of depth > With DELETED draft file in existing directory: src/app/test/unit/utils/tree.test.ts#L92
AssertionError: expected [ { name: 'home', …(5) }, …(1) ] to strictly equal [ { name: 'home', …(5) }, …(1) ] - Expected + Received @@ -15,31 +15,31 @@ "collections": [ "docs", ], "fsPath": "1.getting-started/3.installation.md", "name": "installation", - "prefix": 3, + "prefix": "3", "routePath": "/getting-started/installation", "type": "file", }, { "collections": [ "docs", ], "fsPath": "1.getting-started/2.introduction.md", "name": "introduction", - "prefix": 2, + "prefix": "2", "routePath": "/getting-started/introduction", "status": "deleted", "type": "file", }, ], "collections": [ "docs", ], "fsPath": "1.getting-started", "name": "getting-started", - "prefix": 1, + "prefix": "1", "status": "updated", "type": "directory", }, ] ❯ src/app/test/unit/utils/tree.test.ts:92:18
src/app/test/unit/utils/tree.test.ts > buildTree of documents with one level of depth > With draft: src/app/test/unit/utils/tree.test.ts#L69
AssertionError: expected [ { name: 'home', …(6) }, …(1) ] to strictly equal [ { name: 'home', …(6) }, …(1) ] - Expected + Received @@ -16,29 +16,29 @@ "collections": [ "docs", ], "fsPath": "1.getting-started/2.introduction.md", "name": "introduction", - "prefix": 2, + "prefix": "2", "routePath": "/getting-started/introduction", "type": "file", }, { "collections": [ "docs", ], "fsPath": "1.getting-started/3.installation.md", "name": "installation", - "prefix": 3, + "prefix": "3", "routePath": "/getting-started/installation", "type": "file", }, ], "collections": [ "docs", ], "fsPath": "1.getting-started", "name": "getting-started", - "prefix": 1, + "prefix": "1", "type": "directory", }, ] ❯ src/app/test/unit/utils/tree.test.ts:69:18
src/app/test/unit/utils/tree.test.ts > buildTree of documents with one level of depth > Without draft: src/app/test/unit/utils/tree.test.ts#L53
AssertionError: expected [ { name: 'home', …(5) }, …(1) ] to strictly equal [ { name: 'home', …(5) }, …(1) ] - Expected + Received @@ -15,29 +15,29 @@ "collections": [ "docs", ], "fsPath": "1.getting-started/2.introduction.md", "name": "introduction", - "prefix": 2, + "prefix": "2", "routePath": "/getting-started/introduction", "type": "file", }, { "collections": [ "docs", ], "fsPath": "1.getting-started/3.installation.md", "name": "installation", - "prefix": 3, + "prefix": "3", "routePath": "/getting-started/installation", "type": "file", }, ], "collections": [ "docs", ], "fsPath": "1.getting-started", "name": "getting-started", - "prefix": 1, + "prefix": "1", "type": "directory", }, ] ❯ src/app/test/unit/utils/tree.test.ts:53:18