Hi everyone,
I have folder in my project called test-files
. It contains a test payload files (json, csv, etc), which are used in my jest unit tests. Some of these files can be pretty big. How can I exclude it from forge deployment?
Hi everyone,
I have folder in my project called test-files
. It contains a test payload files (json, csv, etc), which are used in my jest unit tests. Some of these files can be pretty big. How can I exclude it from forge deployment?
Hi @GeoSystems, I believe that if you add /test-files/
to the .gitignore
file, that should do the trick. I’ve just reached out to some internal folks who know the CLI inside out to confirm the above… should have solid answer by end of day.
Thanks @nmansilla . Ideally, I would prefer not to add to .gitignore
, so that I can share the test files and run unit tests from different machine and by different team members.
I have the same issue. @nmansilla, what information did you get from the CLI team?
I asked chatGPT about this and got the following answer:
.forgeignore : Forge CLI reads a
.forgeignore
file at the root of your project (if one exists) to determine which files to exclude from the deployment. The syntax is the same as.gitignore
.
This would be a good solution, but I didn’t find any reference in the documentation about this - so I am not sure if this actually exists.
Can you clarify @nmansilla?
Is that really the same ‘forge’ as the ‘Atlassian forge’?
Has anyone ever found an answer to this? Does the CLI know about .forgeignore
?