feat(cli): expose dirname utility to test scripts #2614
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This will be useful when it's necessary to reference a path in the test config, but it's not one we know to resolve automatically (e.g. processors and payloads).
One known use case right now is the Playwright Engine's
storageState
. Our current example to reuse authentication by leveraging storageState is broken, and this is one way to fix it.Note: I first cleaned up existing logic a little bit (9da818a), so best to review commit by commit.
Testing
I intend to add an automated test, but didn't have time yet. I've tested manually against Fargate and locally (using the example), and it works.