Skip to content

Fix markdown page generation for groups #5184

Fix markdown page generation for groups

Fix markdown page generation for groups #5184

Triggered via pull request June 27, 2025 13:43
Status Failure
Total duration 2m 17s
Artifacts

ci.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors
Test
Process completed with exit code 1.
Test
gitbook#unit: command (/home/runner/work/gitbook/gitbook/packages/gitbook) /home/runner/.bun/bin/bun run unit exited (1)
error: expect(received).toMatchObject(expected): packages/gitbook/src/lib/pages.test.ts#L200
{ + ancestors: [ + { + id: "p1", + kind: "group", + pages: [ + { + document: { + data: { + schemaVersion: 1, + }, + nodes: [], + object: "document", + }, + id: "p2", + kind: "sheet", + layout: { + cover: true, + description: true, + outline: true, + pagination: true, + tableOfContents: true, + title: true, + }, + pages: [], + path: "product-knowledge", + slug: "product-knowledge", + title: "Product Knowledge", + type: "document", + urls: { + app: "https://app.gitbook.com/s/fvBF1lEt2CVd4RTffSOk/product-knowledge", + }, + } + ], + path: "sales", + slug: "sales", + title: "Empty group", + type: "group", + } + ], - ancestors: [], page: { + document: { + data: { + schemaVersion: 1, + }, + nodes: [], + object: "document", + }, + id: "p2", + kind: "sheet", + layout: { + cover: true, + description: true, + outline: true, + pagination: true, + tableOfContents: true, + title: true, + }, + pages: [], + path: "product-knowledge", + slug: "product-knowledge", + title: "Product Knowledge", + type: "document", + urls: { + app: "https://app.gitbook.com/s/fvBF1lEt2CVd4RTffSOk/product-knowledge", + }, - id: "p1", - kind: "group", - pages: [ - { - document: { - data: { - schemaVersion: 1, - }, - nodes: [], - object: "document", - }, - id: "p2", - kind: "sheet", - layout: { - cover: true, - description: true, - outline: true, - pagination: true, - tableOfContents: true, - title: true, - }, - pages: [], - path: "product-knowledge", - slug: "product-knowledge", - title: "Product Knowledge", - type: "document", - urls: { - app: "https://app.gitbook.com/s/fvBF1lEt2CVd4RTffSOk/product-knowledge", - }, - } - ], - path: "sales", - slug: "sales", - title: "Empty group", - type: "group", }, } - Expected - 36 + Received + 64 at <anonymous> (/home/runner/work/gitbook/gitbook/packages/gitbook/src/lib/pages.test.ts:200:22)