feat: Use Oniguruma-To-ES in the JS engine (#828) #558
Annotations
3 errors
Test:
packages/engine-javascript/test/compare.test.ts#L194
AssertionError: expected [ …(4) ] to deeply equal [ [ { …(4) } ], …(3) ]
- Expected
+ Received
Array [
Array [
Object {
"color": "#81A1C1",
- "content": "USE AdventureWorks2022;",
+ "content": "USE",
"fontStyle": 0,
"offset": 0,
+ },
+ Object {
+ "color": "#D8DEE9FF",
+ "content": " AdventureWorks2022;",
+ "fontStyle": 0,
+ "offset": 3,
},
],
Array [
Object {
"color": "#81A1C1",
"content": "GO",
"fontStyle": 0,
"offset": 24,
},
],
Array [
Object {
"color": "#81A1C1",
"content": "IF",
"fontStyle": 0,
"offset": 27,
},
Object {
"color": "#D8DEE9FF",
"content": " ",
"fontStyle": 0,
"offset": 29,
},
Object {
"color": "#88C0D0",
"content": "OBJECT_ID",
"fontStyle": 0,
"offset": 30,
},
Object {
"color": "#D8DEE9FF",
"content": "(",
"fontStyle": 0,
"offset": 39,
},
Object {
"color": "#ECEFF4",
"content": "'",
"fontStyle": 0,
"offset": 40,
},
Object {
"color": "#A3BE8C",
"content": "dbo.NewProducts",
"fontStyle": 0,
"offset": 41,
},
Object {
"color": "#ECEFF4",
"content": "'",
"fontStyle": 0,
"offset": 56,
},
Object {
"color": "#D8DEE9FF",
"content": ", ",
"fontStyle": 0,
"offset": 57,
},
Object {
"color": "#ECEFF4",
"content": "'",
"fontStyle": 0,
"offset": 59,
},
Object {
"color": "#A3BE8C",
"content": "U",
"fontStyle": 0,
"offset": 60,
},
Object {
"color": "#ECEFF4",
"content": "'",
"fontStyle": 0,
"offset": 61,
},
Object {
"color": "#D8DEE9FF",
"content": ") ",
"fontStyle": 0,
"offset": 62,
},
Object {
"color": "#81A1C1",
"content": "IS NOT NULL",
"fontStyle": 0,
"offset": 64,
},
],
Array [
Object {
"color": "#81A1C1",
"content": "DROP",
"fontStyle": 0,
"offset": 76,
},
Object {
"color": "#D8DEE9FF",
"content": " ",
"fontStyle": 0,
"offset": 80,
},
Object {
"color": "#81A1C1",
"content": "TABLE",
"fontStyle": 0,
"offset": 81,
},
Object {
"color": "#D8DEE9FF",
"content": " dbo.NewProducts;",
"fontStyle": 0,
"offset": 86,
},
],
]
❯ packages/engine-javascript/test/compare.test.ts:194:24
❯ packages/engine-javascript/test/compare.test.ts:193:15
|
Test:
packages/shiki/test/core-sync.test.ts#L21
Error: Snapshot `should > works 1` mismatched
Expected: ""<pre class="shiki nord" style="background-color:#2e3440ff;color:#d8dee9ff" tabindex="0"><code><span class="line"><span style="color:#D8DEE9">console</span><span style="color:#ECEFF4">.</span><span style="color:#88C0D0">log</span><span style="color:#D8DEE9FF">(</span><span style="color:#ECEFF4">"</span><span style="color:#A3BE8C">Hi</span><span style="color:#ECEFF4">"</span><span style="color:#D8DEE9FF">)</span></span></code></pre>""
Received: ""<pre class="shiki nord" style="background-color:#2e3440ff;color:#d8dee9ff" tabindex="0"><code><span class="line"><span style="color:#D8DEE9">console.log("Hi")</span></span></code></pre>""
❯ packages/shiki/test/core-sync.test.ts:21:8
|
Test
Process completed with exit code 1.
|
Loading