feat: Add --redo functionality #193
ci.yml
on: pull_request
lint
11s
typecheck
14s
Matrix: test
Annotations
4 errors
tests/unit/redo-task.test.ts > redoLastTask > should redo the last task without changes:
tests/unit/redo-task.test.ts#L68
AssertionError: expected "continueTaskWorkflow" to be called with arguments: [ ObjectContaining{…}, …(4) ]
Received:
1st continueTaskWorkflow call:
Array [
- ObjectContaining {
+ Object {
"model": "last-model",
+ "path": "/test/path",
},
- "/test/path",
- Any<Object>,
+ "D:\\test\\path",
+ Object {
+ "getLastTaskData": [Function spy],
+ "setTaskData": [Function spy],
+ },
"Last generated plan",
"last-model",
]
Number of calls: 1
❯ tests/unit/redo-task.test.ts:68:34
|
tests/unit/redo-task.test.ts > redoLastTask > should allow changing the model:
tests/unit/redo-task.test.ts#L94
AssertionError: expected "continueTaskWorkflow" to be called with arguments: [ ObjectContaining{…}, …(4) ]
Received:
1st continueTaskWorkflow call:
Array [
- ObjectContaining {
+ Object {
"model": "new-model",
+ "path": "/test/path",
},
- "/test/path",
- Any<Object>,
+ "D:\\test\\path",
+ Object {
+ "getLastTaskData": [Function spy],
+ "setTaskData": [Function spy],
+ },
"Last generated plan",
"new-model",
]
Number of calls: 1
❯ tests/unit/redo-task.test.ts:94:34
|
tests/unit/redo-task.test.ts > redoLastTask > should allow changing file selection:
tests/unit/redo-task.test.ts#L119
AssertionError: expected "spy" to be called with arguments: [ '/test/path', ObjectContaining{…} ]
Received:
1st spy call:
Array [
- "/test/path",
- ObjectContaining {
+ "D:\\test\\path",
+ Object {
+ "generatedPlan": "Last generated plan",
+ "instructions": "Last instructions",
+ "model": "last-model",
"selectedFiles": Array [
"new-file1.ts",
"new-file2.ts",
],
+ "taskDescription": "Last task description",
},
]
Number of calls: 1
❯ tests/unit/redo-task.test.ts:119:39
|
test (lts/*, windows-latest)
Process completed with exit code 1.
|