aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/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 /web_src/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 'web_src/js')
-rw-r--r--web_src/js/testUtils/jestRawLoader.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/web_src/js/testUtils/jestRawLoader.js b/web_src/js/testUtils/jestRawLoader.js
new file mode 100644
index 0000000000..15c9f7dc01
--- /dev/null
+++ b/web_src/js/testUtils/jestRawLoader.js
@@ -0,0 +1,5 @@
+export default { // eslint-disable-line import/no-unused-modules
+ process: (content) => {
+ return {code: `module.exports = ${JSON.stringify(content)}`};
+ },
+};