summaryrefslogtreecommitdiffstats
path: root/jest.config.js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-05-10 21:44:36 +0200
committerGitHub <noreply@github.com>2022-05-10 21:44:36 +0200
commit3c658dff233e791856496761325f5ebf787d7521 (patch)
treef38273cd9ef9954733e61e2eef8b9a6c895740e6 /jest.config.js
parent9d0253a9fad085c67e6c985f2a17451d78ac63e7 (diff)
downloadgitea-3c658dff233e791856496761325f5ebf787d7521.tar.gz
gitea-3c658dff233e791856496761325f5ebf787d7521.zip
Update JS dependencies (#19675)
* Update JS dependencies - Update all JS dependencies minus vue and vue-loader - Adapt to jest 28 - Add new eslint rules - Tested Mermaid and Swagger-UI * switch to @happy-dom/jest-environment for faster tests * bump eslint env to es2022
Diffstat (limited to 'jest.config.js')
-rw-r--r--jest.config.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jest.config.js b/jest.config.js
index 690f58d177..d24333aa35 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -1,11 +1,11 @@
export default {
rootDir: 'web_src',
setupFilesAfterEnv: ['jest-extended/all'],
- testEnvironment: 'jsdom',
+ testEnvironment: '@happy-dom/jest-environment',
testMatch: ['<rootDir>/**/*.test.js'],
testTimeout: 20000,
transform: {
- '\\.svg$': 'jest-raw-loader',
+ '\\.svg$': '<rootDir>/js/testUtils/jestRawLoader.js',
},
verbose: false,
};