Skip to content

Commit 0367eb4

Browse files
authored
fix(unit): remove direct Mocked and Stub exports to fix TS2300 (#1020)
1 parent 45a0732 commit 0367eb4

12 files changed

Lines changed: 42 additions & 7 deletions

File tree

.github/workflows/release-packages.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
options:
99
- 'graduate'
1010
- 'prerelease'
11+
- 'stable'
1112
required: true
1213
default: 'prerelease'
1314
target_branch:
@@ -106,6 +107,12 @@ jobs:
106107
env:
107108
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
108109

110+
- name: Stable Version
111+
if: ${{ github.event.inputs.release_type == 'stable' }}
112+
run: npx lerna version --conventional-commits --yes
113+
env:
114+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
115+
109116
- name: Push Changes to Branch
110117
run: |
111118
git push origin ${{ github.event.inputs.target_branch }} --no-verify

e2e/esm/jest/nestjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"typescript": "^5.x"
2020
},
2121
"scripts": {
22-
"test": "tsc --noEmit && NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" NODE_NO_WARNINGS=1 jest",
22+
"test": "tsc --noEmit && tsc -p tsconfig.skipLibCheck.json --noEmit && NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" NODE_NO_WARNINGS=1 jest",
2323
"lint": "eslint '**/*.ts'"
2424
},
2525
"engines": {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"skipLibCheck": false
5+
}
6+
}

e2e/jest/inversify/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"reflect-metadata": "^0.2.0"
1111
},
1212
"scripts": {
13-
"test": "tsc --noEmit && jest",
13+
"test": "tsc --noEmit && tsc -p tsconfig.skipLibCheck.json --noEmit && jest",
1414
"lint": "eslint '**/*.ts'"
1515
},
1616
"devDependencies": {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"skipLibCheck": false
5+
}
6+
}

e2e/jest/nestjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"typescript": "^5.x"
1919
},
2020
"scripts": {
21-
"test": "tsc --noEmit && jest",
21+
"test": "tsc --noEmit && tsc -p tsconfig.skipLibCheck.json --noEmit && jest",
2222
"lint": "eslint '**/*.ts'"
2323
},
2424
"engines": {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"skipLibCheck": false
5+
}
6+
}

e2e/sinon/inversify/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"reflect-metadata": "^0.2.0"
1111
},
1212
"scripts": {
13-
"test": "tsc --noEmit && ts-mocha **/*.e2e.test.ts",
13+
"test": "tsc --noEmit && tsc -p tsconfig.skipLibCheck.json --noEmit && ts-mocha **/*.e2e.test.ts",
1414
"lint": "eslint '**/*.ts'"
1515
},
1616
"devDependencies": {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"skipLibCheck": false
5+
}
6+
}

e2e/sinon/nestjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"reflect-metadata": "^0.2.0"
1212
},
1313
"scripts": {
14-
"test": "tsc --noEmit && ts-mocha **/*.e2e.test.ts",
14+
"test": "tsc --noEmit && tsc -p tsconfig.skipLibCheck.json --noEmit && ts-mocha **/*.e2e.test.ts",
1515
"lint": "eslint '**/*.ts'"
1616
},
1717
"devDependencies": {

0 commit comments

Comments
 (0)