@apica-io/asm-playwright-runner 1.0.0-dev.4 → 1.0.0-dev.5
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/runner.js +1 -0
- package/package.json +1 -1
- package/src/runner.ts +1 -0
package/dist/runner.js
CHANGED
|
@@ -236,6 +236,7 @@ class PlaywrightRunner {
|
|
|
236
236
|
async detectScriptType(collectionPath) {
|
|
237
237
|
try {
|
|
238
238
|
const mod = await Promise.resolve(`${path_1.default.resolve(collectionPath)}`).then(s => __importStar(require(s)));
|
|
239
|
+
this.logger.debug("mod", mod, collectionPath);
|
|
239
240
|
if (typeof mod.default === "function") {
|
|
240
241
|
this.logger.debug("Detected plain Playwright script (default export).");
|
|
241
242
|
return runnerConfig_1.ScriptType.PLAYWRIGHT;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apica-io/asm-playwright-runner",
|
|
3
|
-
"version": "1.0.0-dev.
|
|
3
|
+
"version": "1.0.0-dev.5",
|
|
4
4
|
"description": "CLI wrapper for Playwright collections or scripts with dynamic actions, config, and test result models.",
|
|
5
5
|
"main": "dist/cli/index.js",
|
|
6
6
|
"bin": {
|
package/src/runner.ts
CHANGED
|
@@ -242,6 +242,7 @@ export class PlaywrightRunner {
|
|
|
242
242
|
private async detectScriptType(collectionPath: string): Promise<ScriptType | undefined> {
|
|
243
243
|
try {
|
|
244
244
|
const mod = await import(path.resolve(collectionPath));
|
|
245
|
+
this.logger.debug("mod", mod, collectionPath)
|
|
245
246
|
if (typeof mod.default === "function") {
|
|
246
247
|
this.logger.debug("Detected plain Playwright script (default export).");
|
|
247
248
|
return ScriptType.PLAYWRIGHT;
|