-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
loki approve fails with "no images found to approve" when fileNameFormatter produces subfolders #317
Comments
The code that prints the error is very simple and the only obvious way is that there is no valid PNGs in the output folder loki/packages/runner/src/commands/approve/index.js Lines 15 to 21 in 8beda16
Hard to know without a way to reproduce it. |
Thanks @techeverri I'm gonna try to debug it :) |
If you find a bug please reopen this issue or create a new one 👍 |
@techeverri
My node version is v14.13.1 |
How does your Does it happen on Windows, Linux or macOS? |
I'm on macOS. Is loki supposed to work well with subdirectories? I have a script that generates the |
The loki/packages/runner/src/commands/test/get-output-paths.js Lines 9 to 10 in 8beda16
It doesn't generate subfolders and so |
It sounds like we need extra logic in all places that read from |
Would you recommend keeping a flat structure? I don't think it's a deal breaker, you're not really supposed to browse the images manually anyway |
related to #229 I would say |
Added a PR to fix approve command with custom fileNameFormatter (for deep file structure) |
loki test
returns a bunch of failed testswhen I want to approve all changes with
loki approve
, it tells meno images found to approve
Why is that?
The text was updated successfully, but these errors were encountered: