Repository navigation
fix: 补齐插件终端与权限档位用例的 mock 参数类型,修 typecheck:node #37
ci.yml
on: push
Typecheck, lint and test
2m 43s
Annotations
10 errors, 5 warnings, and 1 notice
|
src/main/plugin/__tests__/document-scope.test.ts > documents.* scope > rejects a callId that is no longer running:
src/main/plugin/__tests__/document-scope.test.ts#L162
AssertionError: expected { id: 4, ok: false, error: { …(2) } } to match object { ok: false, …(1) }
(2 matching properties omitted from actual)
- Expected
+ Received
{
"error": {
- "code": "rejected",
+ "code": "unknown_method",
},
"ok": false,
}
❯ src/main/plugin/__tests__/document-scope.test.ts:162:22
|
|
src/main/plugin/__tests__/document-scope.test.ts > documents.* scope > uses the foreground workspace for requests without a callId:
src/main/plugin/__tests__/document-scope.test.ts#L144
AssertionError: expected undefined to deeply equal { workspaceId: 'fg', …(1) }
- Expected:
{
"workspaceId": "fg",
"workspaceRoot": "/ws/foreground",
}
+ Received:
undefined
❯ src/main/plugin/__tests__/document-scope.test.ts:144:28
|
|
src/main/plugin/__tests__/document-scope.test.ts > documents.* scope > scopes a tool-call document request to the run's workspace, not the foreground one:
src/main/plugin/__tests__/document-scope.test.ts#L136
AssertionError: expected { code: 'unknown_method', …(1) } to be undefined
- Expected:
undefined
+ Received:
{
"code": "unknown_method",
"message": "unknown method: documents.open",
}
❯ src/main/plugin/__tests__/document-scope.test.ts:136:27
|
|
src/main/plugin/__tests__/document-rpc.test.ts:
src/main/plugin/__tests__/document-rpc.test.ts#L15
Error: Cannot find module '../document-rpc' imported from /home/runner/work/NextCoWork/NextCoWork/src/main/plugin/__tests__/document-rpc.test.ts
❯ src/main/plugin/__tests__/document-rpc.test.ts:15:1
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_MODULE_NOT_FOUND' }
|
|
src/main/document-engine/__tests__/provider-registry.test.ts:
src/main/document-engine/__tests__/provider-registry.test.ts#L8
Error: Cannot find module '../provider-registry' imported from /home/runner/work/NextCoWork/NextCoWork/src/main/document-engine/__tests__/provider-registry.test.ts
❯ src/main/document-engine/__tests__/provider-registry.test.ts:8:1
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_MODULE_NOT_FOUND' }
|
|
src/main/document-engine/__tests__/native-host.test.ts > rendering through a real helper process > ★ kills a helper that sends two attachments for one response rather than mispairing them:
src/main/document-engine/__tests__/native-host.test.ts#L207
TypeError: manager.render is not a function
❯ src/main/document-engine/__tests__/native-host.test.ts:207:26
|
|
src/main/document-engine/__tests__/native-host.test.ts > rendering through a real helper process > treats a missing or short attachment as an engine fault:
src/main/document-engine/__tests__/native-host.test.ts#L199
TypeError: manager.render is not a function
❯ src/main/document-engine/__tests__/native-host.test.ts:199:28
|
|
src/main/document-engine/__tests__/native-host.test.ts > rendering through a real helper process > rejects oversized renders before they reach the engine:
src/main/document-engine/__tests__/native-host.test.ts#L191
TypeError: manager.render is not a function
❯ src/main/document-engine/__tests__/native-host.test.ts:191:26
|
|
src/main/document-engine/__tests__/native-host.test.ts > rendering through a real helper process > pairs the binary frame with its response and returns straight RGBA of the requested size:
src/main/document-engine/__tests__/native-host.test.ts#L180
TypeError: manager.render is not a function
❯ src/main/document-engine/__tests__/native-host.test.ts:180:33
|
|
src/main/document-engine/__tests__/native-host.test.ts > NativeHelperConnection > gives the helper only whitelisted environment variables and private HOME/TMP:
src/main/document-engine/__tests__/native-host.test.ts#L114
AssertionError: expected undefined to be '1' // Object.is equality
- Expected:
"1"
+ Received:
undefined
❯ src/main/document-engine/__tests__/native-host.test.ts:114:58
|
|
Typecheck, lint and test
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-node@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Typecheck, lint and test:
src/main/plugin/__tests__/tools.test.ts#L14
Unexpected any. Specify a different type
|
|
Typecheck, lint and test:
packages/plugin-api/nextcowork.d.ts#L617
Unexpected any. Specify a different type
|
|
Typecheck, lint and test:
packages/plugin-api/nextcowork.d.ts#L617
Unexpected any. Specify a different type
|
|
Typecheck, lint and test:
packages/plugin-api/nextcowork.d.ts#L608
Unexpected any. Specify a different type
|
|
Typecheck, lint and test
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
|