@elench/testkit 0.1.9 → 0.1.10

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/infra/neon-up.sh CHANGED
@@ -96,7 +96,10 @@ fi
96
96
  echo "$CONN_URI" > "$STATE_DIR/database_url"
97
97
 
98
98
  # ── Reset test data ─────────────────────────────────────────────────────
99
- if command -v psql &>/dev/null; then
99
+ NEON_RESET="${NEON_RESET:-true}"
100
+ if [ "$NEON_RESET" = "false" ]; then
101
+ echo "Reset disabled — keeping fork data"
102
+ elif command -v psql &>/dev/null; then
100
103
  echo "Resetting test data..."
101
104
  psql "$CONN_URI" -q -c "
102
105
  DO \$\$
package/lib/config.mjs CHANGED
@@ -176,6 +176,9 @@ function validateService(name, svc, manifestPath) {
176
176
  } else {
177
177
  requireString(errors, tk.neon, `${ctx}: testkit.neon.projectId`, "projectId");
178
178
  requireString(errors, tk.neon, `${ctx}: testkit.neon.dbName`, "dbName");
179
+ if (tk.neon.reset !== undefined && typeof tk.neon.reset !== "boolean") {
180
+ errors.push(`${ctx}: testkit.neon.reset must be a boolean`);
181
+ }
179
182
  }
180
183
 
181
184
  if (!isObject(tk.fly)) {
package/lib/runner.mjs CHANGED
@@ -64,6 +64,7 @@ export async function neonUp(config) {
64
64
  NEON_PROJECT_ID: tk.neon.projectId,
65
65
  NEON_DB_NAME: tk.neon.dbName,
66
66
  NEON_BRANCH_NAME: tk.neon.branchName || `${config.name}-test`,
67
+ NEON_RESET: tk.neon.reset === false ? "false" : "true",
67
68
  STATE_DIR: stateDir,
68
69
  });
69
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elench/testkit",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "CLI for running k6 tests against real, ephemeral infrastructure",
5
5
  "type": "module",
6
6
  "bin": {