summaryrefslogtreecommitdiff
path: root/scripts/telemetry_gcp.js
diff options
context:
space:
mode:
authorJerop Kipruto <[email protected]>2025-06-15 16:35:15 -0400
committerGitHub <[email protected]>2025-06-15 16:35:15 -0400
commit101b6fe767eba2063687ec30797e729decf3f6db (patch)
treeeaf8bb0123730ea338adc87b668035205eb7bd45 /scripts/telemetry_gcp.js
parent714421c2da4f5d6b9c1c7060fdf5c47ba1c965ca (diff)
Stabilize /bug command tests with consistent version mocking (#1070)
The `/bug` command tests in `slashCommandProcessor.test.ts` were flaky due to inconsistent CLI versioning. This commit: - Implements a flexible, top-level mock for `getCliVersion` that can be overridden per test. - Sets a default mock value for `/bug` command tests via `beforeEach`. - Overrides the mock in one test case requiring a specific version ('test-version'). - Ensures the test's helper `getExpectedUrl` receives the correct explicit version. - Aligns the expected CLI version in the custom bug URL test with the default mock. These changes ensure consistent CLI versioning in tests, resolving flakiness. #1071
Diffstat (limited to 'scripts/telemetry_gcp.js')
0 files changed, 0 insertions, 0 deletions