Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: migrate type tests of each to TSTyche #14994

Merged
merged 5 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 0 additions & 8 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@
"rangeStrategy": "replace",
"postUpdateOptions": ["yarnDedupeHighest"],
"packageRules": [
{
"matchPackageNames": ["@tsd/typescript", "typescript"],
"groupName": "typescript"
},
{
"matchPackageNames": ["jest-runner-tsd", "tsd-lite"],
"groupName": "tsd"
},
{
"matchPackageNames": ["@lerna-lite/cli", "@lerna-lite/publish"],
"groupName": "lerna-lite"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: ts integration
run: yarn test-ts --selectProjects ts-integration
- name: type tests
run: yarn tstyche --target 5.0,current && yarn test-ts --selectProjects type-tests
run: yarn test-types --target 5.0,current
- name: verify [email protected] compatibility
run: yarn verify-old-ts
- name: run ESLint with type info
Expand Down
10 changes: 0 additions & 10 deletions jest.config.ts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@ export default {
roots: ['<rootDir>/e2e/__tests__'],
testMatch: ['<rootDir>/e2e/__tests__/ts*'],
},
{
displayName: {
color: 'blue',
name: 'type-tests',
},
modulePathIgnorePatterns: baseConfig.modulePathIgnorePatterns,
roots: ['<rootDir>/packages'],
runner: 'jest-runner-tsd',
testMatch: ['**/packages/jest-types/__typetests__/each.test.ts'],
},
],
reporters: ['default', 'github-actions'],
};
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"@lerna-lite/publish": "^3.0.0",
"@microsoft/api-extractor": "^7.35.0",
"@tsconfig/node16": "^16.1.0",
"@tsd/typescript": "^5.0.4",
"@types/babel__core": "^7.1.14",
"@types/babel__generator": "^7.0.0",
"@types/babel__template": "^7.0.2",
Expand Down Expand Up @@ -55,7 +54,6 @@
"jest-changed-files": "workspace:*",
"jest-junit": "^16.0.0",
"jest-mock": "workspace:*",
"jest-runner-tsd": "^6.0.0",
"jest-serializer-ansi-escapes": "^3.0.0",
"jest-silent-reporter": "^0.5.0",
"jest-snapshot": "workspace:*",
Expand All @@ -80,7 +78,7 @@
"strip-json-comments": "^3.1.1",
"tempy": "^1.0.0",
"ts-node": "^10.5.0",
"tstyche": "^1.0.0",
"tstyche": "^2.0.0-beta.0",
"typescript": "^5.0.4",
"webpack": "^5.68.0",
"webpack-node-externals": "^3.0.0",
Expand Down Expand Up @@ -112,7 +110,7 @@
"test-ci-partial:parallel": "yarn jest --color --config jest.config.ci.mjs",
"test-leak": "yarn jest -i --detectLeaks --color jest-mock jest-diff jest-repl pretty-format",
"test-ts": "yarn jest --config jest.config.ts.mjs",
"test-types": "yarn tstyche && yarn test-ts --selectProjects type-tests",
"test-types": "yarn tstyche",
"test": "yarn lint && yarn jest",
"typecheck": "yarn typecheck:examples && yarn typecheck:tests",
"typecheck:examples": "tsc -p examples/expect-extend && tsc -p examples/typescript",
Expand Down
4 changes: 1 addition & 3 deletions packages/expect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@
"devDependencies": {
"@fast-check/jest": "^1.3.0",
"@jest/test-utils": "workspace:*",
"@tsd/typescript": "^5.0.4",
"chalk": "^4.0.0",
"immutable": "^4.0.0",
"tsd-lite": "^0.8.0"
"immutable": "^4.0.0"
},
"engines": {
"node": "^16.10.0 || ^18.12.0 || >=20.0.0"
Expand Down
4 changes: 0 additions & 4 deletions packages/jest-expect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
"expect": "workspace:*",
"jest-snapshot": "workspace:*"
},
"devDependencies": {
"@tsd/typescript": "^5.0.4",
"tsd-lite": "^0.8.0"
},
"engines": {
"node": "^16.10.0 || ^18.12.0 || >=20.0.0"
},
Expand Down
4 changes: 1 addition & 3 deletions packages/jest-reporters/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
},
"devDependencies": {
"@jest/test-utils": "workspace:*",
"@tsd/typescript": "^5.0.4",
"@types/exit": "^0.1.30",
"@types/graceful-fs": "^4.1.3",
"@types/istanbul-lib-coverage": "^2.0.0",
Expand All @@ -52,8 +51,7 @@
"@types/node-notifier": "^8.0.0",
"jest-resolve": "workspace:*",
"mock-fs": "^5.1.2",
"node-notifier": "^10.0.0",
"tsd-lite": "^0.8.0"
"node-notifier": "^10.0.0"
},
"peerDependencies": {
"node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0"
Expand Down
4 changes: 1 addition & 3 deletions packages/jest-resolve/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@
"slash": "^3.0.0"
},
"devDependencies": {
"@tsd/typescript": "^5.0.4",
"@types/graceful-fs": "^4.1.3",
"@types/pnpapi": "^0.0.5",
"@types/resolve": "^1.20.2",
"tsd-lite": "^0.8.0"
"@types/resolve": "^1.20.2"
},
"engines": {
"node": "^16.10.0 || ^18.12.0 || >=20.0.0"
Expand Down
4 changes: 1 addition & 3 deletions packages/jest-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,10 @@
},
"devDependencies": {
"@jest/test-utils": "workspace:*",
"@tsd/typescript": "^5.0.4",
"@types/exit": "^0.1.30",
"@types/graceful-fs": "^4.1.3",
"@types/source-map-support": "^0.5.0",
"jest-jasmine2": "workspace:*",
"tsd-lite": "^0.8.0"
"jest-jasmine2": "workspace:*"
},
"engines": {
"node": "^16.10.0 || ^18.12.0 || >=20.0.0"
Expand Down
4 changes: 1 addition & 3 deletions packages/jest-snapshot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"@babel/preset-flow": "^7.7.2",
"@babel/preset-react": "^7.12.1",
"@jest/test-utils": "workspace:*",
"@tsd/typescript": "^5.0.4",
"@types/babel__core": "^7.1.14",
"@types/graceful-fs": "^4.1.3",
"@types/natural-compare": "^1.4.0",
Expand All @@ -54,8 +53,7 @@
"ansi-regex": "^5.0.1",
"ansi-styles": "^5.0.0",
"prettier": "^3.0.3",
"prettier-v2": "npm:prettier@^2.1.5",
"tsd-lite": "^0.8.0"
"prettier-v2": "npm:prettier@^2.1.5"
},
"engines": {
"node": "^16.10.0 || ^18.12.0 || >=20.0.0"
Expand Down