@toolstackhq/create-qa-patterns 1.0.5 → 1.0.6
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/index.js +32 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -538,16 +538,40 @@ Generated ${template ? template.label : templateName} in ${targetDirectory}
|
|
|
538
538
|
}
|
|
539
539
|
}
|
|
540
540
|
|
|
541
|
-
function printNextSteps(
|
|
542
|
-
|
|
541
|
+
function printNextSteps(summary) {
|
|
542
|
+
const steps = [];
|
|
543
543
|
|
|
544
|
-
if (!generatedInCurrentDirectory) {
|
|
545
|
-
|
|
544
|
+
if (!summary.generatedInCurrentDirectory) {
|
|
545
|
+
steps.push(`cd ${path.relative(process.cwd(), summary.targetDirectory) || "."}`);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
if (summary.npmInstall !== "completed") {
|
|
549
|
+
steps.push("npm install");
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
if (summary.playwrightInstall !== "completed") {
|
|
553
|
+
steps.push("npx playwright install");
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
if (summary.testRun !== "completed") {
|
|
557
|
+
steps.push("npm test");
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
if (steps.length > 0) {
|
|
561
|
+
process.stdout.write(`${colors.cyan("Next steps:")}\n`);
|
|
562
|
+
for (const step of steps) {
|
|
563
|
+
process.stdout.write(` ${step}\n`);
|
|
564
|
+
}
|
|
565
|
+
process.stdout.write("\n");
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
if (summary.demoAppsManagedByTemplate) {
|
|
569
|
+
process.stdout.write(
|
|
570
|
+
`${colors.yellow(colors.bold("Demo apps included:"))} sample tests run against bundled demo apps in local ${colors.bold("dev")}. Delete or replace ${colors.bold("demo-apps/")} if you do not want them.\n`
|
|
571
|
+
);
|
|
546
572
|
}
|
|
547
573
|
|
|
548
|
-
process.stdout.write("
|
|
549
|
-
process.stdout.write(" npx playwright install\n");
|
|
550
|
-
process.stdout.write(" npm test\n");
|
|
574
|
+
process.stdout.write(`${colors.green(colors.bold("Happy testing."))}\n`);
|
|
551
575
|
}
|
|
552
576
|
|
|
553
577
|
function formatStatus(status) {
|
|
@@ -655,7 +679,7 @@ async function main() {
|
|
|
655
679
|
printSuccess(templateName, targetDirectory, generatedInCurrentDirectory);
|
|
656
680
|
await runPostGenerateActions(targetDirectory, summary);
|
|
657
681
|
printSummary(summary);
|
|
658
|
-
printNextSteps(
|
|
682
|
+
printNextSteps(summary);
|
|
659
683
|
}
|
|
660
684
|
|
|
661
685
|
main().catch((error) => {
|