Skip to content

Commit 052dc17

Browse files
test: update CLI test suite
- Flexible assertions avoiding flakiness. - Update test fixtures conforming to the schema.
1 parent 82d9367 commit 052dc17

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/hoppscotch-cli/src/__tests__/e2e/commands/test.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ describe("hopp test [options] <file_path_or_id>", { timeout: 100000 }, () => {
204204
});
205205

206206
const every500msCount = (stdout.match(/Every 500ms/g) || []).length;
207-
expect(every500msCount).toBe(3);
207+
expect(every500msCount).toBeGreaterThanOrEqual(3);
208208
});
209209

210210
test("Fails to display console logs and recognize platform APIs in the legacy scripting sandbox", async () => {

packages/hoppscotch-cli/src/__tests__/e2e/fixtures/environments/digest-auth-envs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
{
1919
"key": "url",
2020
"currentValue": "",
21-
"initialValue": "https://test.insightres.org/digest/"
21+
"initialValue": "https://test.insightres.org/digest/",
22+
"secret": false
2223
}
2324
]
2425
}

0 commit comments

Comments
 (0)