feat: support snapshoting overview #2935
Annotations
5 errors
Test:
test/parser.test.ts#L49
Error: Snapshot `md parser > frontmatter.md > slides 1` mismatched
- Expected
+ Received
@@ -17,10 +17,11 @@
",
"importChain": undefined,
"index": 0,
"level": 1,
"note": undefined,
+ "revision": "243b9h",
"source": {
"content": "
# Hi
",
"contentStart": 7,
@@ -60,10 +61,11 @@
mono: Fira Code
---
# Hi
",
+ "revision": "243b9h",
"start": 0,
"title": "Hi",
},
"title": "Hi",
},
@@ -83,10 +85,11 @@
",
"importChain": undefined,
"index": 1,
"level": 1,
"note": "This is note",
+ "revision": "bi4rhs",
"source": {
"content": "
# Hello
",
"contentStart": 16,
@@ -126,10 +129,11 @@
<!--
This is note
-->
",
+ "revision": "bi4rhs",
"start": 10,
"title": "Hello",
},
"title": "Hello",
},
@@ -139,10 +143,11 @@
"frontmatterRaw": undefined,
"importChain": undefined,
"index": 2,
"level": 1,
"note": undefined,
+ "revision": "-4tdhll",
"source": {
"content": "
# Morning
",
"contentStart": 24,
@@ -156,10 +161,11 @@
"level": 1,
"note": undefined,
"raw": "
# Morning
",
+ "revision": "-4tdhll",
"start": 24,
"title": "Morning",
},
"title": "Morning",
},
@@ -173,10 +179,11 @@
",
"importChain": undefined,
"index": 3,
"level": undefined,
"note": "This is note",
+ "revision": "w0llj2",
"source": {
"content": "
<!-- This is not note -->
Hey
",
@@ -204,10 +211,11 @@
<!--
This is note
-->
",
+ "revision": "w0llj2",
"start": 27,
"title": undefined,
},
"title": undefined,
},
@@ -225,10 +233,11 @@
"frontmatterRaw": undefined,
"importChain": undefined,
"index": 4,
"level": undefined,
"note": undefined,
+ "revision": "-1rfsmv",
"source": {
"content": "
```md
---
this should be treated as code block
@@ -258,10 +267,11 @@
---
Also part of the code block
```
",
+ "revision": "-1rfsmv",
"start": 39,
"title": undefined,
},
"title": undefined,
},
@@ -276,10 +286,11 @@
",
"importChain": undefined,
"index": 5,
"level": undefined,
"note": undefined,
+ "revision": "rp0t01",
"source": {
"content": "
Content 1
",
"contentStart": 51,
@@ -304,10 +315,11 @@
layout: from yaml
```
Content 1
",
+ "revision": "rp0t01",
"start": 51,
"title": undefined,
},
"title": undefined,
},
@@ -325,10 +337,11 @@
",
"importChain": undefined,
"index": 6,
"level": 1,
"note": undefined,
+ "revision": "-vfy6yo",
"source": {
"content": "
```yaml
# When there is already a frontmatter, the first yaml block should be treated as content
layout: should not from yaml 1
@@ -360,10 +373,11 @@
layout: should not from yaml 1
```
Content 2
",
+ "revision": "-vfy6yo",
"start": 59,
"title": "When there is already a frontmatter, the first yaml block should be treated as content",
},
"title": "When there is already a frontmatter, the first yaml block should be treated as content",
},
@@ -380,10 +394,11 @@
"frontmatterRaw": undefined,
"importChain": undefined,
"index": 7,
"level": 1,
"note": undefined,
+ "revision": "-hu94b6",
"source": {
"content": "
# Title
```yaml
@@ -411,10 +426,11 @@
layout: should not from yaml 2
```
Content 3
",
+ "revision": "-hu94b6",
"start": 71,
"title": "Title",
},
"title": "Title",
},
❯ test/parser.test.ts:49:27
|
Test:
test/parser.test.ts#L49
Error: Snapshot `md parser > mdc.md > slides 1` mismatched
- Expected
+ Received
@@ -10,10 +10,11 @@
",
"importChain": undefined,
"index": 0,
"level": 1,
"note": undefined,
+ "revision": "kb2y4a",
"source": {
"content": "
# MDC{style="color:red"}
:arrow{x1=1 y1=1 x2=2 y2=2}
@@ -39,10 +40,11 @@
# MDC{style="color:red"}
:arrow{x1=1 y1=1 x2=2 y2=2}
",
+ "revision": "kb2y4a",
"start": 0,
"title": "MDC{style="color:red"}",
},
"title": "MDC{style="color:red"}",
},
❯ test/parser.test.ts:49:27
|
Test:
test/parser.test.ts#L49
Error: Snapshot `md parser > minimal.md > slides 1` mismatched
- Expected
+ Received
@@ -13,10 +13,11 @@
"frontmatterRaw": undefined,
"importChain": undefined,
"index": 0,
"level": 1,
"note": undefined,
+ "revision": "-l1yoe",
"source": {
"content": "
# H1
## H2
### H3
@@ -46,10 +47,11 @@
```ts
console.log('Hello World')
```
",
+ "revision": "-l1yoe",
"start": 0,
"title": "H1",
},
"title": "H1",
},
@@ -64,10 +66,11 @@
"frontmatterRaw": undefined,
"importChain": undefined,
"index": 1,
"level": 1,
"note": undefined,
+ "revision": "1owo9s",
"source": {
"content": "
# Hello
- Hello
@@ -91,10 +94,11 @@
- Hello
- Hi
- Hey
- Yo
",
+ "revision": "1owo9s",
"start": 11,
"title": "Hello",
},
"title": "Hello",
},
@@ -104,10 +108,11 @@
"frontmatterRaw": undefined,
"importChain": undefined,
"index": 2,
"level": undefined,
"note": undefined,
+ "revision": "-kcr6u0",
"source": {
"content": "
Nice to meet you
",
"contentStart": 20,
@@ -121,10 +126,11 @@
"level": undefined,
"note": undefined,
"raw": "
Nice to meet you
",
+ "revision": "-kcr6u0",
"start": 20,
"title": undefined,
},
"title": undefined,
},
❯ test/parser.test.ts:49:27
|
Test:
test/parser.test.ts#L49
Error: Snapshot `md parser > multi-entries.md > slides 1` mismatched
- Expected
+ Received
@@ -31,10 +31,11 @@
"index": 0,
"level": 1,
"note": undefined,
"raw": "# Page 1
",
+ "revision": "q9078d",
"start": 0,
"title": "Page 1",
},
],
"index": 0,
@@ -42,17 +43,19 @@
"note": undefined,
"raw": "---
src: sub/page1.md
---
",
+ "revision": "ad0zia",
"start": 0,
"title": undefined,
},
],
"index": 0,
"level": 1,
"note": undefined,
+ "revision": "q9078d",
"source": {
"content": "# Page 1",
"contentStart": 0,
"end": 2,
"filepath": "sub/page1.md",
@@ -63,10 +66,11 @@
"index": 0,
"level": 1,
"note": undefined,
"raw": "# Page 1
",
+ "revision": "q9078d",
"start": 0,
"title": "Page 1",
},
"title": "Page 1",
},
@@ -124,10 +128,11 @@
# Page 2
<Tweet />
",
+ "revision": "rdjwxb",
"start": 0,
"title": "Page 2",
},
],
"index": 1,
@@ -136,17 +141,19 @@
"raw": "---
src: /sub/page2.md
background: https://sli.dev/demo-cover.png#2
---
",
+ "revision": "-fzej2s",
"start": 4,
"title": undefined,
},
],
"index": 1,
"level": 1,
"note": undefined,
+ "revision": "rdjwxb",
"source": {
"content": "# Page 2
<Tweet />",
"contentStart": 3,
@@ -170,10 +177,11 @@
# Page 2
<Tweet />
",
+ "revision": "rdjwxb",
"start": 0,
"title": "Page 2",
},
"title": "Page 2",
},
@@ -214,10 +222,11 @@
"index": 0,
"level": 1,
"note": undefined,
"raw": "# Page 3
",
+ "revision": "q9078f",
"start": 0,
"title": "Page 3",
},
{
"content": "# Page 4
@@ -244,10 +253,11 @@
# Page 4
<Tweet />
",
+ "revision": "vn9anh",
"start": 2,
"title": "Page 4",
},
],
"index": 2,
@@ -256,17 +266,19 @@
"raw": "---
src: ./sub/pages3-4.md
background: https://sli.dev/demo-cover.png#34
---
",
+ "revision": "-y8rid0",
"start": 9,
"title": undefined,
},
],
"index": 2,
"level": 1,
"note": undefined,
+ "revision": "q9078f",
"source": {
"content": "# Page 3",
"contentStart": 0,
"end": 2,
"filepath": "sub/pages3-4.md",
@@ -277,10 +289,11 @@
"index": 0,
"level": 1,
"note": undefined,
"raw": "# Page 3
",
+ "revision": "q9078f",
"start": 0,
"title": "Page 3",
},
"title": "Page 3",
},
@@ -325,10 +338,11 @@
"index": 0,
"level": 1,
"note": undefined,
"raw": "# Page 3
",
+ "revision": "q9078f",
"start": 0,
"title": "Page 3",
},
{
"content": "# Page 4
@@ -355,10 +369,11 @@
# Page 4
<Tweet />
",
+ "revision": "vn9anh",
"start": 2,
"title": "Page 4",
},
],
"index": 2,
@@ -367,17 +382,19 @@
"raw": "---
src: ./sub/pages3-4.md
background: https://sli.dev/demo-cover.png#34
---
",
+ "revision": "-y8rid0",
"start": 9,
"title": undefined,
},
],
"index": 3,
"level": 1,
"note": undefined,
+ "revision": "vn9anh",
"source": {
"content": "# Page 4
<Tweet />",
"contentStart": 5,
@@ -401,10 +418,11 @@
# Page 4
<Tweet />
",
+ "revision": "vn9anh",
"start": 2,
"title": "Page 4",
},
"title": "Page 4",
},
@@ -460,10 +4
|
Test
Process completed with exit code 1.
|
Loading