@empiricalrun/test-gen 0.7.2 → 0.7.3
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/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/bin/scenarios/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAiGpC,iBAAe,iBAAiB,CAC9B,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,QAAQ,EAAE,CAAA;CAAE,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/bin/scenarios/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAiGpC,iBAAe,iBAAiB,CAC9B,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,QAAQ,EAAE,CAAA;CAAE,EAAE,CAAC,CA8BxD;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -101,7 +101,14 @@ async function generateScenarios(scenariosPath) {
|
|
|
101
101
|
scenarios: [
|
|
102
102
|
{
|
|
103
103
|
name: config.name,
|
|
104
|
-
steps: config.steps
|
|
104
|
+
steps: config.steps
|
|
105
|
+
.map((s) => {
|
|
106
|
+
if (s.trim().startsWith("-")) {
|
|
107
|
+
return s.replace("-", "");
|
|
108
|
+
}
|
|
109
|
+
return s;
|
|
110
|
+
})
|
|
111
|
+
.filter((s) => !!s),
|
|
105
112
|
assert: config.assert,
|
|
106
113
|
},
|
|
107
114
|
],
|