diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-06-25 00:00:31 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-07-09 17:13:30 +0200 |
commit | 691f570237e26398aa22f40c0efca23141d5583e (patch) | |
tree | 4409270ac8ee482ad03f745f77003c726ffbf09f /jest.config.ts | |
parent | 3a97dbf248b3e581b5782a638743958eb6f2a640 (diff) | |
download | nextcloud-server-691f570237e26398aa22f40c0efca23141d5583e.tar.gz nextcloud-server-691f570237e26398aa22f40c0efca23141d5583e.zip |
chore: Enable ESLint for apps and fix all errors
Nevertheless this causes a huge amount of new warnings.
Previously the shell script for directories to lint was wrong it was generating all app names to lint,
but was missing the `apps/` prefix. Causing only `core` to be linted.
Co-authored-by: Grigorii K. Shartsev <me@shgk.me>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'jest.config.ts')
-rw-r--r-- | jest.config.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/jest.config.ts b/jest.config.ts index 54b7ee1fd35..b2f9617874f 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -38,7 +38,10 @@ const config: Config = { testMatch: ['<rootDir>/**/*.(spec|test).(ts|js)'], clearMocks: true, - setupFilesAfterEnv: ['<rootDir>/__tests__/jest-setup.ts'], + setupFilesAfterEnv: [ + '<rootDir>/__tests__/jest-setup.ts', + '<rootDir>/__tests__/mock-window.js', + ], testEnvironment: 'jest-environment-jsdom', preset: 'ts-jest/presets/js-with-ts', |