Skip to content
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

feat: add option to specify whether to use cache; do not use cache for jest #51

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

smcenlly
Copy link

We discovered an issue using esbuild-runner/jest with our product, Wallaby.js where it was returning old file content for a new transformed file request because the file timestamp (used by the cache) is unchanged.

Jest has its own caching mechanism that is used when the file content is unchanged which means that the caching mechanism should be unnecessary when using jest.

I'm not sure what other contexts esbuild-runner is used, but for the case of jest, I've modified esbuild-runner to not use its internal cache.

@smcenlly
Copy link
Author

(Related issue: wallabyjs/public#2946)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant