Skip to content

Commit 24ff75c

Browse files
authored
refactor: Unify types for jest tsconfigs (#3298)
This pull request updates TypeScript Jest configuration files to centralize and standardize the declaration of custom test utility types. The main change is moving the inclusion of `@streamr/test-utils/customMatcherTypes` from package-level configurations into the root `tsconfig.jest.json`, ensuring all packages consistently include these types during testing. ### Changes **TypeScript Jest configuration updates:** * Added `@streamr/test-utils/customMatcherTypes` to the `types` array in the root `tsconfig.jest.json` so that custom matcher types are available project-wide. * Removed redundant `types` declarations from `packages/cli-tools/tsconfig.jest.json` and `packages/trackerless-network/tsconfig.jest.json` to rely on the centralized configuration. [[1]](diffhunk://#diff-198e2b7b2035fa308d0d3c58fddc55ee01229e98c40f7c40ac11cffb40092f83L3-L9) [[2]](diffhunk://#diff-c14c2d64f2874f18ecea49d8f61528f5d0a7064ce5e125b3807f2c1dc3491d30L4-L8)
1 parent 3c97533 commit 24ff75c

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

packages/cli-tools/tsconfig.jest.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
{
22
"extends": "../../tsconfig.jest.json",
3-
"compilerOptions": {
4-
"types": [
5-
"node",
6-
"jest",
7-
"@streamr/test-utils/customMatcherTypes"
8-
]
9-
},
103
"include": [
114
"package.json",
125
"src",

packages/trackerless-network/tsconfig.jest.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{
22
"extends": "../../tsconfig.jest.json",
33
"compilerOptions": {
4-
"types": [
5-
"node",
6-
"jest",
7-
"@streamr/test-utils/customMatcherTypes"
8-
],
94
"noImplicitOverride": false
105
},
116
"include": [

tsconfig.jest.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
"compilerOptions": {
44
"noEmit": true,
55
"isolatedModules": true,
6-
"types": ["node", "jest", "jest-extended"]
6+
"types": [
7+
"node",
8+
"jest",
9+
"jest-extended",
10+
"@streamr/test-utils/customMatcherTypes"
11+
]
712
}
813
}

0 commit comments

Comments
 (0)