Skip to content

Commit d0f46c7

Browse files
fixed issue#198 for proper test cafe setup and command to run from root
1 parent 04794da commit d0f46c7

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ const initializeNewProject = async (
750750
);
751751
}
752752

753-
const workspaces = [`${reservedDir.MODULES}/*`];
753+
const workspaces = [`${reservedDir.MODULES}/**/*`];
754754
let rootPacakgeJson;
755755
if (newProject) {
756756
const { root, apps } = await copyOptionalTemplatesNewProject(

templates/optionalFeatures/testcafe/base/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
2+
"name": "testcafe",
3+
"version": "0.1.0",
24
"scripts": {
35
"clean": "npx rimraf cucumber-json-reports",
4-
"test": "gherkin-testcafe",
6+
"e2e": "gherkin-testcafe",
57
"report": "node utils/generateReport.js",
6-
"test:local": "node local"
8+
"e2e:local": "node local"
79
},
810
"dependencies": {
911
"@cucumber/cucumber": "^7.3.1",

templates/root/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"generate": "generate && {commandType} format",
99
"start": "turbo run start --parallel",
1010
"test": "turbo run test",
11-
"test:watch": "turbo run test:watch"
11+
"test:watch": "turbo run test:watch",
12+
"e2e": "turbo run e2e"
1213
},
1314
"devDependencies": {
1415
"@commitlint/cli": "^16.2.1",

templates/root/turbo.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
"test:watch": {
1717
"dependsOn": ["^build"]
1818
},
19+
"e2e": {
20+
"dependsOn": ["^build"]
21+
},
1922
"dev": {
2023
"cache": false
2124
},

0 commit comments

Comments
 (0)