Skip to content

Commit a7f2b28

Browse files
test: update create_documentation test to verify PRD check and remove incompatible jest test
1 parent 6c51012 commit a7f2b28

File tree

2 files changed

+6
-70
lines changed

2 files changed

+6
-70
lines changed

tests/handlers.test.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ test("run_tests guidance mentions core documentation types", async () => {
7979
});
8080
});
8181

82-
test("create_documentation accepts PRD and records created/updated message", async () => {
82+
test("create_documentation verifies PRD file exists", async () => {
8383
await withWorkflowState(async (workflowState) => {
8484
workflowState.state.testsPassed = true;
8585
await workflowState.save();
@@ -105,6 +105,7 @@ test("create_documentation accepts PRD and records created/updated message", asy
105105
utils,
106106
});
107107

108+
// Should succeed since PRD.md exists in the project
108109
assert.equal(workflowState.state.documentationCreated, true);
109110
assert.equal(workflowState.state.documentationType, "PRD");
110111
assert.equal(
@@ -115,6 +116,10 @@ test("create_documentation accepts PRD and records created/updated message", asy
115116
response.content[0].text.includes("Documentation created/updated!"),
116117
"create_documentation response should mention created/updated",
117118
);
119+
assert.ok(
120+
response.content[0].text.includes("PRD verified"),
121+
"create_documentation response should verify PRD file",
122+
);
118123
});
119124
});
120125

web/tests/build.test.js

Lines changed: 0 additions & 69 deletions
This file was deleted.

0 commit comments

Comments
 (0)