Skip to content

Commit e0955b9

Browse files
committed
move jest dependencies to test workspace
1 parent faedb50 commit e0955b9

File tree

5 files changed

+213
-1845
lines changed

5 files changed

+213
-1845
lines changed

package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,15 @@
77
"scripts": {
88
"compile": "tsc",
99
"build": "yarn run clean && yarn run compile",
10-
"test": "jest",
10+
"test": "yarn --cwd test install && yarn --cwd test jest",
1111
"release": "standard-version",
1212
"--------------": "",
1313
"format": "prettier --write .",
1414
"clean": "npx -y rimraf -g dist **/*.tsbuildinfo ./test/projects/nx/dist",
1515
"clean:all": "yarn run clean && npx -y rimraf -g node_modules **/node_modules **/yarn.lock yarn.lock",
1616
"reset": "yarn run clean:all && yarn install && yarn build",
1717
"-------------- ": "",
18-
"prebuild": "npx -y rimraf -g dist",
19-
"install:tests": "cd test && yarn install",
20-
"prepare": "yarn run install:tests"
18+
"prebuild": "npx -y rimraf -g dist"
2119
},
2220
"keywords": [
2321
"typescript",
@@ -55,15 +53,12 @@
5553
"nx-transformer.js"
5654
],
5755
"devDependencies": {
58-
"@types/jest": "^29.2.0",
5956
"@types/minimatch": "^5.1.2",
6057
"@types/node": "^18.11.2",
61-
"jest": "^29.7.0",
6258
"prettier": "^3.3.3",
6359
"rimraf": "^5.0.5",
6460
"standard-version": "^9.5.0",
6561
"@types/ts-expose-internals": "npm:ts-expose-internals@4.9.4",
66-
"ts-jest": "^29.1.2",
6762
"ts-node": "^10.9.1",
6863
"ts-patch": "^3.1.2",
6964
"typescript": "^5.3.3"

jest.config.ts renamed to test/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const config: JestConfigWithTsJest = {
99
"^.+\\.tsx?$": [
1010
"ts-jest",
1111
{
12-
tsconfig: "<rootDir>/test/tsconfig.json",
12+
tsconfig: "<rootDir>/tsconfig.json",
1313
},
1414
],
1515
},

test/package.json

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,24 @@
55
"prepare": "node prepare.js"
66
},
77
"devDependencies": {
8-
"typescript-transform-paths": "link:../src",
9-
"ts-expose-internals": "^4.1.2",
10-
"typescript-three": "npm:typescript@3.6.5",
11-
"typescript-four-seven": "npm:typescript@4.7.4",
12-
"ts-node": "link:../node_modues/ts-node",
13-
"typescript": "latest",
14-
"ts-patch": "latest",
15-
"tsp1": "npm:ts-patch@1.*.*",
16-
"tsp2": "npm:ts-patch@2.*.*",
178
"@nrwl/cli": "^15.0.0",
189
"@nrwl/js": "^15.0.0",
1910
"@nrwl/node": "^15.0.0",
2011
"@nrwl/workspace": "^15.0.0",
12+
"@types/jest": "^29.5.12",
13+
"jest": "^29.7.0",
2114
"nx": "^15.0.0",
22-
"strip-ansi": "^6.0.1"
15+
"strip-ansi": "^6.0.1",
16+
"ts-expose-internals": "^4.1.2",
17+
"ts-jest": "^29.2.4",
18+
"ts-node": "link:../node_modues/ts-node",
19+
"ts-patch": "latest",
20+
"tsp1": "npm:ts-patch@1.*.*",
21+
"tsp2": "npm:ts-patch@2.*.*",
22+
"typescript": "latest",
23+
"typescript-four-seven": "npm:typescript@4.7.4",
24+
"typescript-three": "npm:typescript@3.6.5",
25+
"typescript-transform-paths": "link:../src"
2326
},
2427
"workspaces": {
2528
"packages": [

0 commit comments

Comments
 (0)