@toolstackhq/create-qa-patterns 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -2
- package/index.js +130 -48
- package/package.json +1 -1
- package/templates/cypress-template/.env.example +5 -0
- package/templates/cypress-template/.github/workflows/cypress-tests.yml +47 -0
- package/templates/cypress-template/README.md +195 -0
- package/templates/cypress-template/config/environments.ts +37 -0
- package/templates/cypress-template/config/runtime-config.ts +46 -0
- package/templates/cypress-template/config/secret-manager.ts +19 -0
- package/templates/cypress-template/config/test-env.ts +13 -0
- package/templates/cypress-template/cypress/e2e/ui-journey.cy.ts +20 -0
- package/templates/cypress-template/cypress/support/app-config.ts +23 -0
- package/templates/cypress-template/cypress/support/commands.d.ts +15 -0
- package/templates/cypress-template/cypress/support/commands.ts +17 -0
- package/templates/cypress-template/cypress/support/data/data-factory.ts +33 -0
- package/templates/cypress-template/cypress/support/data/id-generator.ts +13 -0
- package/templates/cypress-template/cypress/support/data/seeded-faker.ts +11 -0
- package/templates/cypress-template/cypress/support/e2e.ts +1 -0
- package/templates/cypress-template/cypress/support/pages/login-page.ts +23 -0
- package/templates/cypress-template/cypress/support/pages/people-page.ts +59 -0
- package/templates/cypress-template/cypress.config.ts +32 -0
- package/templates/cypress-template/demo-apps/ui-demo-app/package.json +10 -0
- package/templates/cypress-template/demo-apps/ui-demo-app/public/styles.css +120 -0
- package/templates/cypress-template/demo-apps/ui-demo-app/src/server.js +149 -0
- package/templates/cypress-template/demo-apps/ui-demo-app/src/store.js +43 -0
- package/templates/cypress-template/demo-apps/ui-demo-app/src/templates.js +121 -0
- package/templates/cypress-template/eslint.config.mjs +93 -0
- package/templates/cypress-template/package-lock.json +3758 -0
- package/templates/cypress-template/package.json +31 -0
- package/templates/cypress-template/scripts/run-cypress.mjs +105 -0
- package/templates/cypress-template/scripts/run-tests.sh +6 -0
- package/templates/cypress-template/tsconfig.json +15 -0
- package/templates/playwright-template/package-lock.json +533 -25
- package/templates/playwright-template/scripts/generate-allure-report.mjs +9 -1
|
@@ -24,10 +24,18 @@ const collectResultFiles = async () => {
|
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
const generateReport = async () => {
|
|
27
|
+
try {
|
|
28
|
+
await stat(resultsDir);
|
|
29
|
+
} catch {
|
|
30
|
+
process.stdout.write("Skipping Allure report generation because allure-results does not exist.\n");
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
|
|
27
34
|
const files = await collectResultFiles();
|
|
28
35
|
|
|
29
36
|
if (files.length === 0) {
|
|
30
|
-
|
|
37
|
+
process.stdout.write("Skipping Allure report generation because no result files were found.\n");
|
|
38
|
+
return;
|
|
31
39
|
}
|
|
32
40
|
|
|
33
41
|
await rm(outputDir, { force: true, recursive: true });
|