Skip to content

test: Cover reactlog_write(), reactlog_render(), widget args, and module UIs - #165

Draft
schloerke wants to merge 2 commits into
schloerke/160-rlang-cli-errorsfrom
schloerke/160-more-unit-tests
Draft

schloerke wants to merge 2 commits into
schloerke/160-rlang-cli-errorsfrom
schloerke/160-more-unit-tests

Conversation

@schloerke

@schloerke schloerke commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Adds unit tests for code that had none. reactlog_write(): returns JSON when file = NULL, keeps global and matching-session entries when session_token is set, and writes to a file. reactlog_render(): removes the template placeholders and the defaultLog.js script, sets the time flag, and copies reactlogAsset/ next to the file. reactlog_enable() / reactlog_disable(): set the shiny.reactlog option.

reactlog_widget(): passes time and session_token through to the page, and sets width, height, and elementId. reactlog_module_ui() / reactlog_widget_module_ui(): namespace their ids and drop the refresh button when include_refresh = FALSE.

Tests only, no package code changes. Stacked on #164.

…ule UIs

Add tests for session filtering and file output in reactlog_write(),
template filling and asset copying in reactlog_render(), time,
session_token, and sizes in reactlog_widget(), the shiny option set by
reactlog_enable()/reactlog_disable(), and module UI ids and the
include_refresh flag.
@schloerke
schloerke added this pull request to stack #163 October 22, 2026 20:26
@schloerke
schloerke force-pushed the schloerke/160-more-unit-tests branch from 2c952e9 to 85bfe89 Compare October 22, 2026 20:29

This branch has not been deployed

No deployments
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.

1 participant