Skip to content

test: cover sendModLog channel selection (unset, non-text, fetch-failure branches)#21

Closed
dromzeh wants to merge 3 commits into
mainfrom
test/mod-log-channel-selection
Closed

test: cover sendModLog channel selection (unset, non-text, fetch-failure branches)#21
dromzeh wants to merge 3 commits into
mainfrom
test/mod-log-channel-selection

Conversation

@dromzeh

@dromzeh dromzeh commented Jul 1, 2026

Copy link
Copy Markdown
Member

direct tests for the mod-log channel resolution warns, importing the real sendModLog via a post-mock dynamic import so the global mod-log stub in other suites does not clobber it

@dromzeh dromzeh added the enhancement New feature or request label Jul 1, 2026
@dromzeh dromzeh self-assigned this Jul 1, 2026
@dromzeh

dromzeh commented Jul 1, 2026

Copy link
Copy Markdown
Member Author

abandoning — sendModLog's channel-selection can't be asserted in the full suite: an earlier suite caches mod-log.ts with the real env+logger, so the test's ~/env and ~/lib/logger mocks are bypassed and log.warn never hits the captured mock. not worth defeating bun's module cache for two logging branches.

@dromzeh dromzeh closed this Jul 1, 2026
@dromzeh dromzeh deleted the test/mod-log-channel-selection branch July 1, 2026 02:22
@dromzeh

dromzeh commented Jul 1, 2026

Copy link
Copy Markdown
Member Author

just like me fr!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant