Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support transform argument from testthat in app$expect_*() #396

Open
maxheld83 opened this issue Nov 12, 2024 · 0 comments
Open

support transform argument from testthat in app$expect_*() #396

maxheld83 opened this issue Nov 12, 2024 · 0 comments

Comments

@maxheld83
Copy link
Contributor

testthat's expect_snapshot() has a neat transform argument, which lets you run, well, transformations on values before they are submitted to comparison.

transform
Optionally, a function to scrub sensitive or stochastic text from the output. Should take a character vector of lines as input and return a modified character vector as output.

(source https://testthat.r-lib.org/reference/expect_snapshot.html?q=transform#ref-usage)

Would be nice if the relevant shinytest2 functions also supported this.

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

No branches or pull requests

1 participant