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
This commit is contained in:
silverwind 2022-05-10 21:44:36 +02:00 committed by GitHub
parent 9d0253a9fa
commit 3c658dff23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 3023 additions and 2181 deletions

View file

@ -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,
};