aboutsummaryrefslogtreecommitdiffstats
path: root/jest.config.js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2021-08-17 07:32:48 +0200
committerGitHub <noreply@github.com>2021-08-17 01:32:48 -0400
commitea07726dc193c41c60e26c25ad705059bd4f6555 (patch)
tree5d3191bd5a1968893e599eadca279a3f527617b9 /jest.config.js
parentcf4328359bb765ebccc592d8fe50cd8190455220 (diff)
downloadgitea-ea07726dc193c41c60e26c25ad705059bd4f6555.tar.gz
gitea-ea07726dc193c41c60e26c25ad705059bd4f6555.zip
Update JS dependencies (#16708)
* Update JS dependencies - Update all JS dependencies - Adapt to recent webpack changes - Add new lint rules and fix issues - Regenerate SVGs and update svgo api usage Fixes: https://github.com/go-gitea/gitea/pull/16492 * adapt jest config and sort keys Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'jest.config.js')
-rw-r--r--jest.config.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/jest.config.js b/jest.config.js
index f95ef1c39c..6937a52fc1 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -1,10 +1,9 @@
export default {
+ rootDir: 'web_src',
setupFilesAfterEnv: ['jest-extended'],
+ testEnvironment: 'jsdom',
+ testMatch: ['<rootDir>/**/*.test.js'],
testTimeout: 20000,
- rootDir: 'web_src',
- testMatch: [
- '<rootDir>/**/*.test.js',
- ],
transform: {},
verbose: false,
};