Skip to content

Commit 66fbe7d

Browse files
Adjust generator tests
1 parent 4a81c3e commit 66fbe7d

File tree

8 files changed

+33
-14
lines changed

8 files changed

+33
-14
lines changed

packages/generator-widget/generators/app/templates/packages/__tests__/outputs/package_web.json-js-e2e.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@
3434
},
3535
"resolutions": {
3636
"react": "^18.2.0",
37+
"react-dom": "18.2.0",
3738
"react-native": "0.72.7"
3839
},
3940
"overrides": {
4041
"react": "^18.2.0",
42+
"react-dom": "18.2.0",
4143
"react-native": "0.72.7"
4244
}
4345
}

packages/generator-widget/generators/app/templates/packages/__tests__/outputs/package_web.json-js-unit-e2e.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
"build": "pluggable-widgets-tools build:web",
2222
"lint": "pluggable-widgets-tools lint",
2323
"lint:fix": "pluggable-widgets-tools lint:fix",
24-
"test": "pluggable-widgets-tools test:unit:web --no-cache --ci && npm run test:e2e",
25-
"test:unit": "pluggable-widgets-tools test:unit:web --coverage",
24+
"test": "pluggable-widgets-tools test:unit:web:enzyme-free && npm run test:e2e",
25+
"test:unit": "pluggable-widgets-tools test:unit:web:enzyme-free",
2626
"test:e2e": "npx cypress open --browser chrome --e2e",
2727
"prerelease": "npm run lint",
2828
"release": "pluggable-widgets-tools release:web"
@@ -36,10 +36,12 @@
3636
},
3737
"resolutions": {
3838
"react": "^18.2.0",
39+
"react-dom": "18.2.0",
3940
"react-native": "0.72.7"
4041
},
4142
"overrides": {
4243
"react": "^18.2.0",
44+
"react-dom": "18.2.0",
4345
"react-native": "0.72.7"
4446
}
4547
}

packages/generator-widget/generators/app/templates/packages/__tests__/outputs/package_web.json-js-unit.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
"build": "pluggable-widgets-tools build:web",
2222
"lint": "pluggable-widgets-tools lint",
2323
"lint:fix": "pluggable-widgets-tools lint:fix",
24-
"test": "pluggable-widgets-tools test:unit:web --no-cache --ci",
25-
"test:unit": "pluggable-widgets-tools test:unit:web --coverage",
24+
"test": "pluggable-widgets-tools test:unit:web:enzyme-free",
25+
"test:unit": "pluggable-widgets-tools test:unit:web:enzyme-free",
2626
"prerelease": "npm run lint",
2727
"release": "pluggable-widgets-tools release:web"
2828
},
@@ -34,10 +34,12 @@
3434
},
3535
"resolutions": {
3636
"react": "^18.2.0",
37+
"react-dom": "18.2.0",
3738
"react-native": "0.72.7"
3839
},
3940
"overrides": {
4041
"react": "^18.2.0",
42+
"react-dom": "18.2.0",
4143
"react-native": "0.72.7"
4244
}
4345
}

packages/generator-widget/generators/app/templates/packages/__tests__/outputs/package_web.json-js.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@
3232
},
3333
"resolutions": {
3434
"react": "^18.2.0",
35+
"react-dom": "18.2.0",
3536
"react-native": "0.72.7"
3637
},
3738
"overrides": {
3839
"react": "^18.2.0",
40+
"react-dom": "18.2.0",
3941
"react-native": "0.72.7"
4042
}
4143
}

packages/generator-widget/generators/app/templates/packages/__tests__/outputs/package_web.json-ts-e2e.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"devDependencies": {
2929
"@mendix/pluggable-widgets-tools": "^10.15.0",
3030
"@types/big.js": "^6.0.2",
31-
"@types/enzyme": "^3.10.8",
3231
"@types/jasmine": "^3.6.9",
3332
"cypress": "^10.10.0"
3433
},
@@ -37,12 +36,16 @@
3736
},
3837
"resolutions": {
3938
"react": "^18.2.0",
39+
"react-dom": "18.2.0",
4040
"@types/react": "^18.2.0",
41+
"@types/react-dom": "18.2.0",
4142
"react-native": "0.72.7"
4243
},
4344
"overrides": {
4445
"react": "^18.2.0",
46+
"react-dom": "18.2.0",
4547
"@types/react": "^18.2.0",
48+
"@types/react-dom": "18.2.0",
4649
"react-native": "0.72.7"
4750
}
4851
}

packages/generator-widget/generators/app/templates/packages/__tests__/outputs/package_web.json-ts-unit-e2e.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,34 @@
2121
"build": "pluggable-widgets-tools build:web",
2222
"lint": "pluggable-widgets-tools lint",
2323
"lint:fix": "pluggable-widgets-tools lint:fix",
24-
"test": "pluggable-widgets-tools test:unit:web --no-cache --ci && npm run test:e2e",
25-
"test:unit": "pluggable-widgets-tools test:unit:web --coverage",
24+
"test": "pluggable-widgets-tools test:unit:web:enzyme-free && npm run test:e2e",
25+
"test:unit": "pluggable-widgets-tools test:unit:web:enzyme-free",
2626
"test:e2e": "npx cypress open --browser chrome --e2e",
2727
"prerelease": "npm run lint",
2828
"release": "pluggable-widgets-tools release:web"
2929
},
3030
"devDependencies": {
3131
"@mendix/pluggable-widgets-tools": "^10.15.0",
3232
"@types/big.js": "^6.0.2",
33-
"@types/enzyme": "^3.10.8",
3433
"@types/jasmine": "^3.6.9",
3534
"@types/jest": "^29.0.0",
36-
"@types/react-test-renderer": "~18.0.0",
3735
"cypress": "^10.10.0"
3836
},
3937
"dependencies": {
4038
"classnames": "^2.2.6"
4139
},
4240
"resolutions": {
4341
"react": "^18.2.0",
42+
"react-dom": "18.2.0",
4443
"@types/react": "^18.2.0",
44+
"@types/react-dom": "18.2.0",
4545
"react-native": "0.72.7"
4646
},
4747
"overrides": {
4848
"react": "^18.2.0",
49+
"react-dom": "18.2.0",
4950
"@types/react": "^18.2.0",
51+
"@types/react-dom": "18.2.0",
5052
"react-native": "0.72.7"
5153
}
5254
}

packages/generator-widget/generators/app/templates/packages/__tests__/outputs/package_web.json-ts-unit.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,31 @@
2121
"build": "pluggable-widgets-tools build:web",
2222
"lint": "pluggable-widgets-tools lint",
2323
"lint:fix": "pluggable-widgets-tools lint:fix",
24-
"test": "pluggable-widgets-tools test:unit:web --no-cache --ci",
25-
"test:unit": "pluggable-widgets-tools test:unit:web --coverage",
24+
"test": "pluggable-widgets-tools test:unit:web:enzyme-free",
25+
"test:unit": "pluggable-widgets-tools test:unit:web:enzyme-free",
2626
"prerelease": "npm run lint",
2727
"release": "pluggable-widgets-tools release:web"
2828
},
2929
"devDependencies": {
3030
"@mendix/pluggable-widgets-tools": "^10.15.0",
3131
"@types/big.js": "^6.0.2",
32-
"@types/enzyme": "^3.10.8",
33-
"@types/jest": "^29.0.0",
34-
"@types/react-test-renderer": "~18.0.0"
32+
"@types/jest": "^29.0.0"
3533
},
3634
"dependencies": {
3735
"classnames": "^2.2.6"
3836
},
3937
"resolutions": {
4038
"react": "^18.2.0",
39+
"react-dom": "18.2.0",
4140
"@types/react": "^18.2.0",
41+
"@types/react-dom": "18.2.0",
4242
"react-native": "0.72.7"
4343
},
4444
"overrides": {
4545
"react": "^18.2.0",
46+
"react-dom": "18.2.0",
4647
"@types/react": "^18.2.0",
48+
"@types/react-dom": "18.2.0",
4749
"react-native": "0.72.7"
4850
}
4951
}

packages/generator-widget/generators/app/templates/packages/__tests__/outputs/package_web.json-ts.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,16 @@
3333
},
3434
"resolutions": {
3535
"react": "^18.2.0",
36+
"react-dom": "18.2.0",
3637
"@types/react": "^18.2.0",
38+
"@types/react-dom": "18.2.0",
3739
"react-native": "0.72.7"
3840
},
3941
"overrides": {
4042
"react": "^18.2.0",
43+
"react-dom": "18.2.0",
4144
"@types/react": "^18.2.0",
45+
"@types/react-dom": "18.2.0",
4246
"react-native": "0.72.7"
4347
}
4448
}

0 commit comments

Comments
 (0)