@ligeti/testing 2.0.3 → 2.0.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/README.md CHANGED
@@ -125,7 +125,9 @@ describe`. The binary is the one declared by the `@ligeti/sdk` installed next to
125
125
  - **`sanitizedEnv`** (`src/env.ts`) — `process.env` with every `LIGETI_*` variable and
126
126
  `CLAUDE_CONFIG_DIR` stripped, then overrides applied. Tests pass the env a scenario actually
127
127
  needs explicitly, rather than risk inheriting a ligeti-launched agent's own session env if the
128
- outer test process happens to be running inside one.
128
+ outer test process happens to be running inside one. It also sets `LIGETI_CONFIG_DIR` to a path
129
+ that does not exist, so a test that spawns `ligeti` without choosing a config directory fails
130
+ instead of reading the developer's own.
129
131
 
130
132
  ## The fake executables
131
133
 
package/dist/env.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAMA,wBAAgB,YAAY,CAC1B,SAAS,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAM,EAClD,IAAI,GAAE,MAAM,CAAC,UAAwB,GACpC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CASpC"}
1
+ {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAOA,wBAAgB,YAAY,CAC1B,SAAS,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAM,EAClD,IAAI,GAAE,MAAM,CAAC,UAAwB,GACpC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CASpC"}
package/dist/env.js CHANGED
@@ -1,7 +1,8 @@
1
- // ABOUTME: Builds a child-process env from process.env with LIGETI_*/CLAUDE_CONFIG_DIR stripped,
2
- // ABOUTME: so a test can't inherit a ligeti-launched agent's own session env and kill or misdirect it.
1
+ // ABOUTME: Builds a child-process env from process.env with LIGETI_*/CLAUDE_CONFIG_DIR stripped, so a test
2
+ // ABOUTME: can't inherit a ligeti-launched agent's session env, and with LIGETI_CONFIG_DIR unreachable.
3
3
  const STRIPPED_PREFIXES = ["LIGETI_"];
4
4
  const STRIPPED_KEYS = ["CLAUDE_CONFIG_DIR"];
5
+ const UNREACHABLE_CONFIG_DIR = "/nonexistent/ligeti-test-config-dir";
5
6
  export function sanitizedEnv(overrides = {}, base = process.env) {
6
7
  const stripped = {};
7
8
  for (const [key, value] of Object.entries(base)) {
@@ -10,6 +11,6 @@ export function sanitizedEnv(overrides = {}, base = process.env) {
10
11
  }
11
12
  stripped[key] = value;
12
13
  }
13
- return { ...stripped, ...overrides };
14
+ return { ...stripped, LIGETI_CONFIG_DIR: UNREACHABLE_CONFIG_DIR, ...overrides };
14
15
  }
15
16
  //# sourceMappingURL=env.js.map
package/dist/env.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"env.js","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,uGAAuG;AAEvG,MAAM,iBAAiB,GAAG,CAAC,SAAS,CAAC,CAAC;AACtC,MAAM,aAAa,GAAG,CAAC,mBAAmB,CAAC,CAAC;AAE5C,MAAM,UAAU,YAAY,CAC1B,YAAgD,EAAE,EAClD,OAA0B,OAAO,CAAC,GAAG;IAErC,MAAM,QAAQ,GAAuC,EAAE,CAAC;IACxD,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QAChD,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,IAAI,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC9F,SAAS;QACX,CAAC;QACD,QAAQ,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACxB,CAAC;IACD,OAAO,EAAE,GAAG,QAAQ,EAAE,GAAG,SAAS,EAAE,CAAC;AACvC,CAAC"}
1
+ {"version":3,"file":"env.js","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAAA,2GAA2G;AAC3G,wGAAwG;AAExG,MAAM,iBAAiB,GAAG,CAAC,SAAS,CAAC,CAAC;AACtC,MAAM,aAAa,GAAG,CAAC,mBAAmB,CAAC,CAAC;AAC5C,MAAM,sBAAsB,GAAG,qCAAqC,CAAC;AAErE,MAAM,UAAU,YAAY,CAC1B,YAAgD,EAAE,EAClD,OAA0B,OAAO,CAAC,GAAG;IAErC,MAAM,QAAQ,GAAuC,EAAE,CAAC;IACxD,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QAChD,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,IAAI,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC9F,SAAS;QACX,CAAC;QACD,QAAQ,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACxB,CAAC;IACD,OAAO,EAAE,GAAG,QAAQ,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,GAAG,SAAS,EAAE,CAAC;AAClF,CAAC"}
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@ligeti/testing",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "description": "Ligeti test kit: real-process test doubles (throwaway Postgres databases, fake claude/opencode/herdr, fake GitLab, Bitbucket, Jira and Telegram) and helpers that run a workflow package under a real ligeti-worker.",
5
5
  "type": "module",
6
- "license": "UNLICENSED",
6
+ "license": "Apache-2.0",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://gitlab.com/nagyv-projects/ligeti.git",
@@ -25,11 +25,11 @@
25
25
  "pg": "^8.23.0"
26
26
  },
27
27
  "peerDependencies": {
28
- "@ligeti/sdk": "^2.1.2"
28
+ "@ligeti/sdk": "^2.2.1"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/pg": "^8.15.5",
32
- "@ligeti/sdk": "2.1.2"
32
+ "@ligeti/sdk": "2.2.1"
33
33
  },
34
34
  "scripts": {}
35
35
  }