Skip to content

Commit

Permalink
Migrate type tests to TSTyche (#741)
Browse files Browse the repository at this point in the history
* migrate type tests to TSTyche

* format

* use `describe()` and `it()`

* rename test file
  • Loading branch information
mrazauskas authored Nov 25, 2024
1 parent 31d5a28 commit 273f44f
Show file tree
Hide file tree
Showing 7 changed files with 271 additions and 295 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- run: npm run lint
- run: npm run typecheck
- run: npm run test
- run: npm run test:types
#- run: npm run test:unit
#- run: npm run test-server &
#- run: npm run test
Expand Down
1 change: 0 additions & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const config = {
projects: [
'<rootDir>/jest/browser/jest.config.ts',
'<rootDir>/jest/node/jest.config.ts',
'<rootDir>/jest/tsd/jest.config.ts',
],
};
export default config;
11 changes: 0 additions & 11 deletions jest/tsd/jest.config.ts

This file was deleted.

91 changes: 24 additions & 67 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"test:unit": "npm run test:unit:browser && npm run test:unit:node",
"test:unit:browser": "jest --config jest/browser/jest.config.ts",
"test:unit:node": "jest --config jest/node/jest.config.ts",
"test:types": "jest --config jest/tsd/jest.config.ts"
"test:types": "tstyche"
},
"engines": {
"node": "^18.17.1",
Expand Down Expand Up @@ -53,7 +53,6 @@
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^15.0.2",
"@testing-library/user-event": "^14.5.2",
"@tsd/typescript": "^5.4.5",
"@types/eslint__js": "^8.42.3",
"@types/jest": "^29.5.12",
"@types/lodash": "^4.14.202",
Expand All @@ -71,13 +70,13 @@
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-fixed-jsdom": "^0.0.8",
"jest-runner-tsd": "^6.0.0",
"msw": "^2.6.0",
"next-router-mock": "^0.9.13",
"pino-pretty": "^11.2.2",
"prettier": "3.2.5",
"styletron-engine-snapshot": "^1.0.2",
"ts-jest": "^29.1.2",
"tstyche": "^3.0.0",
"typescript": "^5.3.3",
"typescript-eslint": "^7.13.0",
"undici": "^6.19.2"
Expand Down
Loading

0 comments on commit 273f44f

Please sign in to comment.