mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-25 11:22:16 +00:00
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:
parent
9d0253a9fa
commit
3c658dff23
9 changed files with 3023 additions and 2181 deletions
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue