You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to put my screenshots in a non-flat file structure. I've added a fileNameFormatter to my loki configuration. It works great when running loki update.
However, if I make a change to a component and then run loki test, I get an ENOENT: no such file or directory error:
FAIL chrome.docker/chrome.laptop/templates/LocationServiceTemplate/RelatedLinks
Base
ENOENT: no such file or directory, open '/Users/ktomlinson/src/v3/packages/marketing-pages/.loki/difference/chrome.laptop/templates/locationservicetemplate/relatedlinks base.png'
I'm guessing that Loki is not creating the directory that the difference file is going to go into before attempting to create the file. This can probably be fixed by adding a mkdir -p right before writing the difference file to disk.
Here's my Loki configuration file. Note I'm using the exact fileNameFormatter function that's used as an example in the documentation.
I'm attempting to put my screenshots in a non-flat file structure. I've added a
fileNameFormatter
to my loki configuration. It works great when runningloki update
.However, if I make a change to a component and then run
loki test
, I get anENOENT: no such file or directory
error:I'm guessing that Loki is not creating the directory that the difference file is going to go into before attempting to create the file. This can probably be fixed by adding a
mkdir -p
right before writing the difference file to disk.Here's my Loki configuration file. Note I'm using the exact fileNameFormatter function that's used as an example in the documentation.
The text was updated successfully, but these errors were encountered: