feat: Use Oniguruma-To-ES in the JS engine (#828) #558
ci.yml
on: pull_request
lint
35s
typecheck
1m 3s
Matrix: test
Annotations
5 errors and 5 warnings
packages/engine-javascript/test/compare.test.ts > cases > sql:
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
|
packages/shiki/test/core-sync.test.ts > should > works:
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 (20.x, ubuntu-latest)
Process completed with exit code 1.
|
packages/engine-javascript/test/compare.test.ts > cases > sql:
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 (lts/*, windows-latest)
Process completed with exit code 1.
|
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
typecheck
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
test (18.x, ubuntu-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: codecov/codecov-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
test (lts/*, macos-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: codecov/codecov-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
test (lts/*, ubuntu-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: codecov/codecov-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|