@letsrunit/executor 0.18.1 → 0.18.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/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
- package/src/explore.ts +7 -1
- package/src/generate.ts +1 -1
- package/src/run.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -93183,7 +93183,13 @@ async function explore(target, opts = {}, process2) {
|
|
|
93183
93183
|
const journal = opts.journal ?? Journal.nil();
|
|
93184
93184
|
let controller;
|
|
93185
93185
|
try {
|
|
93186
|
-
controller = await Controller.launch({
|
|
93186
|
+
controller = await Controller.launch({
|
|
93187
|
+
headless: opts.headless,
|
|
93188
|
+
baseURL: base,
|
|
93189
|
+
journal,
|
|
93190
|
+
debug: true,
|
|
93191
|
+
capture: true
|
|
93192
|
+
});
|
|
93187
93193
|
const { page } = await controller.run(makeFeature({ name: `Explore website "${base}"`, steps }));
|
|
93188
93194
|
const pageInfo = await extractPageInfo(page);
|
|
93189
93195
|
const name = pageInfo.name ?? pageInfo.url;
|
|
@@ -93248,7 +93254,7 @@ async function generate8(target, suggestion, opts = {}) {
|
|
|
93248
93254
|
const journal = opts.journal ?? Journal.nil();
|
|
93249
93255
|
let controller;
|
|
93250
93256
|
try {
|
|
93251
|
-
controller = await Controller.launch({ headless: opts.headless, baseURL: base, journal });
|
|
93257
|
+
controller = await Controller.launch({ headless: opts.headless, baseURL: base, journal, capture: true });
|
|
93252
93258
|
const signal = opts.timeout ? AbortSignal.timeout(opts.timeout) : void 0;
|
|
93253
93259
|
return await generateFeature({
|
|
93254
93260
|
controller,
|
|
@@ -93273,7 +93279,7 @@ async function run(target, feature, opts = {}) {
|
|
|
93273
93279
|
const journal = opts.journal ?? Journal.nil();
|
|
93274
93280
|
let controller;
|
|
93275
93281
|
try {
|
|
93276
|
-
controller = await Controller.launch({ headless: opts.headless, baseURL: base, journal });
|
|
93282
|
+
controller = await Controller.launch({ headless: opts.headless, baseURL: base, journal, capture: true });
|
|
93277
93283
|
const featureText = typeof feature === "string" ? feature : makeFeature(feature);
|
|
93278
93284
|
const { status } = await controller.run(featureText);
|
|
93279
93285
|
return { status };
|