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.
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 modifiedesbuild-runner
to not use its internal cache.