Skip to content

Commit e7b6bb6

Browse files
committed
test(e2e): configure type augmentation
Add global.d.ts files and update tsconfig in all e2e test projects to adopt the new explicit type augmentation pattern. Each test project now explicitly declares which doubles adapter to use via triple-slash reference directives.
1 parent 2b2be83 commit e7b6bb6

File tree

12 files changed

+22
-10
lines changed

12 files changed

+22
-10
lines changed

e2e/jest/inversify/global.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="@suites/doubles.jest/unit" />

e2e/jest/inversify/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"allowJs": true,
66
},
77
"include": [
8-
"*e2e.test.ts"
8+
"*e2e.test.ts",
9+
"global.d.ts"
910
],
1011
"exclude": [
1112
"node_modules"

e2e/jest/nestjs/global.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="@suites/doubles.jest/unit" />

e2e/jest/nestjs/tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
"allowJs": true
66
},
77
"include": [
8-
"*e2e.test.ts"
8+
"*e2e.test.ts",
9+
"global.d.ts"
910
],
1011
"exclude": [
1112
"node_modules"
1213
]
13-
}
14+
}

e2e/sinon/inversify/global.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="@suites/doubles.sinon/unit" />

e2e/sinon/inversify/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"allowJs": true,
66
},
77
"include": [
8-
"*e2e.test.ts"
8+
"*e2e.test.ts",
9+
"global.d.ts"
910
],
1011
"exclude": [
1112
"node_modules"

e2e/sinon/nestjs/global.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="@suites/doubles.sinon/unit" />

e2e/sinon/nestjs/tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"extends": "../tsconfig.json",
33
"include": [
4-
"*e2e.test.ts"
4+
"*e2e.test.ts",
5+
"global.d.ts"
56
],
67
"exclude": [
78
"node_modules"
89
]
9-
}
10+
}

e2e/vitest/inversify/global.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="@suites/doubles.vitest/unit" />

e2e/vitest/inversify/tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
"allowJs": true
88
},
99
"include": [
10-
"*e2e.test.ts"
10+
"*e2e.test.ts",
11+
"global.d.ts"
1112
],
1213
"exclude": [
1314
"node_modules"
1415
]
15-
}
16+
}

0 commit comments

Comments
 (0)