Skip to content

feat(config): Ensure that tests run locally skip any local user config#747

Merged
dlvhdr merged 1 commit intodlvhdr:mainfrom
sideshowbarker:sideshowbarker/skip-global-config-in-tests
Jan 28, 2026
Merged

feat(config): Ensure that tests run locally skip any local user config#747
dlvhdr merged 1 commit intodlvhdr:mainfrom
sideshowbarker:sideshowbarker/skip-global-config-in-tests

Conversation

@sideshowbarker
Copy link
Contributor

Summary

  • Add a SkipGlobalConfig field to config.Location. That causes ParseConfig to load only a provided config file — without merging it with any local ~/.config/gh-dash/config.yml user-config file.

  • Update all existing test files to use SkipGlobalConfig: true.

Those changes are useful for local testing, where user-defined keybindings in a user’s config can “intercept” built-in keys — causing tests to pass locally but fail in CI, where no such local user config exists.

How did you test this change?

Ran the test suite locally :)

- Add a SkipGlobalConfig field to config.Location. That causes
  ParseConfig to load only a provided config file — without merging it
  with any local ~/.config/gh-dash/config.yml user-config file.

- Update all existing test files to use SkipGlobalConfig: true.

Those changes are useful for local testing, where user-defined keybindings
in a user’s config can “intercept” built-in keys — causing tests to pass
locally but fail in CI, where no such local user config exists.
@sideshowbarker sideshowbarker force-pushed the sideshowbarker/skip-global-config-in-tests branch from 6da744c to c85d9b4 Compare January 22, 2026 06:26
Copy link
Owner

@dlvhdr dlvhdr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3

@dlvhdr dlvhdr merged commit 1cee318 into dlvhdr:main Jan 28, 2026
3 checks passed
@sideshowbarker sideshowbarker deleted the sideshowbarker/skip-global-config-in-tests branch February 7, 2026 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants