Skip to content

Commit 2bfc466

Browse files
committed
Remove jest-presets
1 parent 8f237cc commit 2bfc466

12 files changed

Lines changed: 28 additions & 1985 deletions

File tree

component-generator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pnpm plop rc
1616
| Component Name | Supports nested paths like `form/InputText` |
1717
| Is Client Component | Adds `"use client"` directive |
1818
| Create .module.scss | Adds a scoped SCSS module |
19-
| Create Unit Test File | Adds a Jest + React Testing Library stub |
19+
| Create Unit Test File | Adds a Vitest + React Testing Library stub |
2020
| Description | Added to the top of the component file as JSDoc |
2121

2222
### Example Output

contributing.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ This TurboRepo comprises the following packages/examples, all written in [TypeSc
2525
- `@example/vite`: a [Vite.js](https://vitest.dev) app
2626
- `@repo/eslint-config`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
2727
- `@repo/typescript-config`: `tsconfig.json`s used throughout the monorepo
28-
- `@repo/jest-presets`: Jest presets for unit testing
2928
- `@repo/logger`: A configurable shared logger utility
3029
- `@repo/shared`: An internal library of components utilized by the examples
3130
- `react18-loaders`: a React component library (The core package published to NPM)

examples/express/package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@
99
"clean": "rm -rf dist",
1010
"typecheck": "tsc --noEmit",
1111
"lint": "eslint src/",
12-
"lint:fix": "eslint src/ --fix",
13-
"test": "jest --detectOpenHandles"
14-
},
15-
"jest": {
16-
"preset": "@repo/jest-presets/node"
12+
"lint:fix": "eslint src/ --fix"
1713
},
1814
"dependencies": {
1915
"@repo/logger": "workspace:*",
@@ -24,16 +20,13 @@
2420
},
2521
"devDependencies": {
2622
"@repo/eslint-config": "workspace:*",
27-
"@repo/jest-presets": "workspace:*",
2823
"@repo/typescript-config": "workspace:*",
2924
"@types/body-parser": "^1.19.6",
3025
"@types/cors": "^2.8.19",
3126
"@types/express": "^5.0.3",
32-
"@types/jest": "^30.0.0",
3327
"@types/morgan": "^1.9.10",
3428
"@types/node": "^24.1.0",
3529
"@types/supertest": "^6.0.3",
36-
"jest": "^30.0.5",
3730
"supertest": "^7.1.4",
3831
"tsup": "^8.5.0",
3932
"typescript": "^5.9.2"

examples/express/src/__tests__/server.test.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

packages/jest-presets/browser/jest-preset.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/jest-presets/node/jest-preset.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

packages/jest-presets/package.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

packages/logger/package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,12 @@
1212
"dev": "tsup --watch",
1313
"lint": "eslint src/",
1414
"lint:fix": "eslint src/ --fix",
15-
"typecheck": "tsc --noEmit",
16-
"test": "jest"
17-
},
18-
"jest": {
19-
"preset": "@repo/jest-presets/node"
15+
"typecheck": "tsc --noEmit"
2016
},
2117
"devDependencies": {
2218
"@repo/eslint-config": "workspace:*",
23-
"@repo/jest-presets": "workspace:*",
2419
"@repo/typescript-config": "workspace:*",
25-
"@types/jest": "^30.0.0",
2620
"@types/node": "^24.1.0",
27-
"jest": "^30.0.5",
2821
"tsup": "^8.5.0",
2922
"typescript": "^5.9.2"
3023
}

packages/logger/src/__tests__/log.test.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/logger/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"compilerOptions": {
44
"lib": ["ES2015"],
55
"outDir": "./dist",
6-
"types": ["jest", "node"]
6+
"types": ["node"]
77
},
88
"include": ["."],
9-
"exclude": ["node_modules", "dist"],
9+
"exclude": ["node_modules", "dist"]
1010
}

0 commit comments

Comments
 (0)