Skip to content

Commit 9450895

Browse files
committed
test(commands): 添加dry-run参数测试支持文件检测
- 增加--dry-run参数的测试用例 - 验证在dry-run模式下无支持文件的退出码和错误信息 - 确保无支持文件时正确返回错误码2
1 parent e681263 commit 9450895

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/commands/tests/e2e/knowledge/knowledge-doc-upload.e2e.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ describe("e2e: knowledge doc upload", () => {
191191
unsupportedDir,
192192
"--workspace-id",
193193
"ws_test",
194+
"--dry-run",
194195
]);
195196
expect(exitCode).toBe(2);
196197
expect(stderr).toMatch(/No supported files found/i);

0 commit comments

Comments
 (0)