Skip to content

Commit c27d4cf

Browse files
authored
[SILO-701] chore: improve tests for module and cycles feature check #18
[SILO-701] chore: improve tests for module and cycles feature check
1 parent 88c1280 commit c27d4cf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/unit/module.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ describe(!!(config.workspaceSlug && config.projectId && config.workItemId), "Mod
1616
workspaceSlug = config.workspaceSlug;
1717
projectId = config.projectId;
1818
workItemId = config.workItemId;
19+
const project = await client.projects.retrieve(workspaceSlug, projectId);
20+
if (!project.module_view) {
21+
await client.projects.update(workspaceSlug, projectId, {
22+
module_view: true,
23+
});
24+
}
1925
});
2026

2127
afterAll(async () => {

0 commit comments

Comments
 (0)