Skip to content

Suggestion: cacheDirectory should default to something local #1608

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

Closed
quantizor opened this issue Sep 4, 2016 · 2 comments
Closed

Suggestion: cacheDirectory should default to something local #1608

quantizor opened this issue Sep 4, 2016 · 2 comments

Comments

@quantizor
Copy link
Contributor

Using the OS tmp directory for Jest's ephemeral generated assets means that most CIs can't reliably cache it and keep test runs consistently fast.

Using a default cacheDirectory like node_modules/.jest-cache would stash away those files in a spot that most (if not all) devs have git-ignored and workspace-ignored by default, but also remain completely cacheable by container-based CI services like Travis.

@cpojer
Copy link
Member

cpojer commented Sep 6, 2016

cacheDirectory is configurable for this reason. We used to store it inside of Jest but it was always a huge issue to people so we changed to a temp folder. Please configure Jest the way you like for your CI :)

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants