@metasession.co/devaudit-cli 0.1.60 → 0.1.62

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 CHANGED
@@ -56,7 +56,7 @@ function emitJsonResult(payload) {
56
56
 
57
57
  // package.json
58
58
  var package_default = {
59
- version: "0.1.60"};
59
+ version: "0.1.62"};
60
60
 
61
61
  // src/lib/version.ts
62
62
  var CLI_VERSION = package_default.version;
@@ -2039,6 +2039,7 @@ var CI_TEMPLATES = [
2039
2039
  "check-release-approval.yml.template",
2040
2040
  "post-deploy-prod.yml.template",
2041
2041
  "compliance-evidence.yml.template",
2042
+ "feature-e2e.yml.template",
2042
2043
  "close-out-release.yml.template",
2043
2044
  // DevAudit-Installer#98 WS3: quarterly cron → auto-PR with the
2044
2045
  // periodic-review.md regenerated from local stats.
@@ -2124,6 +2125,20 @@ function buildAuthenticatedE2eStep(cfg) {
2124
2125
  }
2125
2126
  return lines.join("\n");
2126
2127
  }
2128
+ function buildFeatureE2eTestStep(cfg) {
2129
+ const env = cfg.e2e_env ?? {};
2130
+ const lines = [
2131
+ " - name: Run in-scope E2E",
2132
+ " env:",
2133
+ " PLAYWRIGHT_HTML_REPORTER_OPEN: never",
2134
+ " PLAYWRIGHT_JSON_OUTPUT_NAME: e2e-results.json"
2135
+ ];
2136
+ if (Object.keys(env).length > 0) lines.push(indentEnvBlock({ ...env }, 10));
2137
+ lines.push(" run: |");
2138
+ lines.push(' REQ_ID="${{ needs.detect-req.outputs.req_id }}"');
2139
+ lines.push(' npx playwright test --grep "$REQ_ID" --reporter=json,html');
2140
+ return lines.join("\n");
2141
+ }
2127
2142
  function buildDbUriStep(dbService, dbPort) {
2128
2143
  if (dbService !== "mongodb") return "";
2129
2144
  return [
@@ -2178,6 +2193,7 @@ async function syncCiTemplates(ctx) {
2178
2193
  E2E_SETUP_STEP: buildE2eSetupStep(cfg),
2179
2194
  E2E_DEV_SERVER_STEP: buildE2eDevServerStep(cfg),
2180
2195
  E2E_TEST_STEP: buildE2eTestStep(cfg),
2196
+ E2E_FEATURE_TEST_STEP: buildFeatureE2eTestStep(cfg),
2181
2197
  E2E_AUTHENTICATED_STEP: buildAuthenticatedE2eStep(cfg)
2182
2198
  };
2183
2199
  let count = 0;