Skip to content

Add import layers for testthat files#1260

Open
lionel- wants to merge 2 commits into
oak/salsa-21-multi-targetfrom
oak/salsa-22-testthat
Open

Add import layers for testthat files#1260
lionel- wants to merge 2 commits into
oak/salsa-21-multi-targetfrom
oak/salsa-22-testthat

Conversation

@lionel-
Copy link
Copy Markdown
Contributor

@lionel- lionel- commented Jun 8, 2026

Branched from #1259

Whereas scripts in tests/ folders are standalone, scripts in tests/testthat/ are sourced in an environment where:

  • Setup and helper files are run.
  • The package namespace is injected
  • The testthat exports are attached

This PR detects testthat files and adjusts the import layers accordingly, so that symbols injected by testthat are visible in these files.

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