diff options
author | silverwind <me@silverwind.io> | 2022-08-23 14:58:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-23 20:58:04 +0800 |
commit | 56220515fc882943e366fafbce4d5b2b3ccee702 (patch) | |
tree | d64bffc3a9d13ce01bf56aedc896923aa4af0acf /jest.config.js | |
parent | 0a9ed54abbe8b6837dcb22a35b744c11f410421f (diff) | |
download | gitea-56220515fc882943e366fafbce4d5b2b3ccee702.tar.gz gitea-56220515fc882943e366fafbce4d5b2b3ccee702.zip |
Enable contenthash in filename for dynamic assets (#20813)
This should solve the main problem of dynamic assets getting stale after
a version upgrade. Everything not affected will use query-string based
cache busting, which includes files loaded via HTML or worker scripts.
Diffstat (limited to 'jest.config.js')
-rw-r--r-- | jest.config.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jest.config.js b/jest.config.js index d24333aa35..34d47acc43 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,7 +1,7 @@ export default { rootDir: 'web_src', setupFilesAfterEnv: ['jest-extended/all'], - testEnvironment: '@happy-dom/jest-environment', + testEnvironment: 'jest-environment-jsdom', testMatch: ['<rootDir>/**/*.test.js'], testTimeout: 20000, transform: { |