Fix markdown page generation for groups #5184
ci.yaml
on: pull_request
Format
27s
Test
41s
Build (Open Source)
2m 12s
Typecheck
50s
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)
|