aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMusikAnimal <musikanimal@gmail.com>2025-03-25 22:13:32 -0400
committerMusikAnimal <musikanimal@gmail.com>2025-03-26 12:24:25 -0400
commit593e4d805ca70306c17d540f4be64f17c99aa1cc (patch)
tree706566dcebd65ca6fdd7d1bc7de7af02dd5a25f7
parent0e3a562d6ea3f9529d995a3494b741486ef3747a (diff)
downloadmediawikicore-593e4d805ca70306c17d540f4be64f17c99aa1cc.tar.gz
mediawikicore-593e4d805ca70306c17d540f4be64f17c99aa1cc.zip
jest.config.js: limit to searching only in tests/jest
This speeds up the runtime significantly Bug: T390003 Change-Id: I25ecb126a28c807ebff469ca2167a635a6588125
-rw-r--r--tests/jest/jest.config.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/jest/jest.config.js b/tests/jest/jest.config.js
index 08246460d9b8..bb63bd3aaceb 100644
--- a/tests/jest/jest.config.js
+++ b/tests/jest/jest.config.js
@@ -118,9 +118,10 @@ module.exports = {
rootDir: '../../',
// A list of paths to directories that Jest should use to search for files in
- // roots: [
- // '<rootDir>'
- // ],
+ roots: [
+ '<rootDir>/resources/src/mediawiki.special.block',
+ '<rootDir>/tests/jest'
+ ],
// Allows you to use a custom runner instead of Jest's default test runner
// runner: 'jest-runner',