@xera-ai/core 0.1.6 → 0.1.7
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/bin/internal.js
CHANGED
|
@@ -675,12 +675,17 @@ async function execCmd(argv) {
|
|
|
675
675
|
mkdirSync7(runDir, { recursive: true });
|
|
676
676
|
const envName = process.env.XERA_ENV ?? config.web.defaultEnv;
|
|
677
677
|
const baseURL = config.web.baseUrl[envName] ?? config.web.baseUrl[config.web.defaultEnv];
|
|
678
|
+
const reportJsonPath = join5(runDir, "report.json");
|
|
678
679
|
log.log({ step: "exec.start", runId, env: envName, baseURL });
|
|
679
680
|
const r = await runPlaywright({
|
|
680
681
|
specPath: paths.specPath,
|
|
681
682
|
configPath: cfgPath,
|
|
682
683
|
outputDir: runDir,
|
|
683
|
-
env: {
|
|
684
|
+
env: {
|
|
685
|
+
XERA_BASE_URL: baseURL,
|
|
686
|
+
XERA_ENV: envName,
|
|
687
|
+
PLAYWRIGHT_JSON_OUTPUT_NAME: reportJsonPath
|
|
688
|
+
}
|
|
684
689
|
});
|
|
685
690
|
log.log({ step: "exec.done", runId, exit: r.exitCode, ms: Date.now() - t0 });
|
|
686
691
|
console.log(`[xera:exec] runId=${runId} outcome=${r.outcome}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../src/bin-internal/exec.ts"],"names":[],"mappings":"AAWA,wBAAsB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../src/bin-internal/exec.ts"],"names":[],"mappings":"AAWA,wBAAsB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAuG7D"}
|
package/package.json
CHANGED
package/src/bin-internal/exec.ts
CHANGED
|
@@ -88,12 +88,21 @@ export async function execCmd(argv: string[]): Promise<number> {
|
|
|
88
88
|
const envName = process.env.XERA_ENV ?? config.web.defaultEnv;
|
|
89
89
|
const baseURL = config.web.baseUrl[envName] ?? config.web.baseUrl[config.web.defaultEnv]!;
|
|
90
90
|
|
|
91
|
+
const reportJsonPath = join(runDir, 'report.json');
|
|
92
|
+
|
|
91
93
|
log.log({ step: 'exec.start', runId, env: envName, baseURL });
|
|
92
94
|
const r = await runPlaywright({
|
|
93
95
|
specPath: paths.specPath,
|
|
94
96
|
configPath: cfgPath,
|
|
95
97
|
outputDir: runDir,
|
|
96
|
-
env: {
|
|
98
|
+
env: {
|
|
99
|
+
XERA_BASE_URL: baseURL,
|
|
100
|
+
XERA_ENV: envName,
|
|
101
|
+
// Playwright's JSON reporter prints to stdout by default. Redirect it
|
|
102
|
+
// to a file inside the run dir so xera:normalize has a deterministic
|
|
103
|
+
// path to read.
|
|
104
|
+
PLAYWRIGHT_JSON_OUTPUT_NAME: reportJsonPath,
|
|
105
|
+
},
|
|
97
106
|
});
|
|
98
107
|
log.log({ step: 'exec.done', runId, exit: r.exitCode, ms: Date.now() - t0 });
|
|
99
108
|
|