-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Expose config object #1984
Comments
My bad. You can get the config like so.
|
You could… but that's an internal API and may break without warning. Could you elaborate on your use case? |
I'm building some until functions to create visual snapshots for regression testing using puppeteer. I need access to the config object so I can get the snapshotDir and whether ava was run with --update-snapshots |
#1977 introduces a I'm not sure what to do about the update flag. I can see the value in exposing it but I'm concerned it may prevent us from building interactive update UIs later. Though perhaps at that point we won't expose it if run interactively. There's other open issues to stop AVA from creating new snapshots in CI that may impact this. What do you think? |
Exposing on the You could expose the raw command line arguments that were passed to ava. That way if you remove the |
AVA actually forwards all arguments after a |
Ah, okay, was not aware of that. |
I think it should be named |
@IssueHunt has funded $40.00 to this issue.
|
I took a stab at this in #2444 |
Fixes #1984. Co-authored-by: Mark Wubben <mark@novemberborn.net>
@sindresorhus has rewarded $36.00 to @ulken. See it on IssueHunt
|
It would be useful for ava to expose the config object to the tests. For example I need to save some extra files with snapshots, it would be nice if I could pull the
snapshotDir
from the config.IssueHunt Summary
ulken has been rewarded.
Backers (Total: $40.00)
Submitted pull Requests
Tips
IssueHunt has been backed by the following sponsors. Become a sponsor
The text was updated successfully, but these errors were encountered: