Skip to content

feat(core): implement global config directory with XDG support (#377) #466

feat(core): implement global config directory with XDG support (#377)

feat(core): implement global config directory with XDG support (#377) #466

Triggered via push December 20, 2025 09:16
Status Failure
Total duration 1m 12s
Artifacts

ci.yml

on: push
Lint & Type Check
19s
Lint & Type Check
Matrix: test_matrix
Test
Test
Validate Changesets
Validate Changesets
All checks passed
2s
All checks passed
All checks passed
0s
All checks passed
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 1 warning
test/core/global-config.test.ts > global-config > saveGlobalConfig > should write formatted JSON with trailing newline: test/core/global-config.test.ts#L238
Error: ENOENT: no such file or directory, open 'C:\Users\RUNNER~1\AppData\Local\Temp\openspec-global-config-test-1766222264627\openspec\config.json' ❯ test/core/global-config.test.ts:238:26 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -4058, code: 'ENOENT', syscall: 'open', path: 'C:\Users\RUNNER~1\AppData\Local\Temp\openspec-global-config-test-1766222264627\openspec\config.json' }
test/core/global-config.test.ts > global-config > saveGlobalConfig > should overwrite existing config file: test/core/global-config.test.ts#L228
AssertionError: expected undefined to be true // Object.is equality - Expected: true + Received: undefined ❯ test/core/global-config.test.ts:228:39
test/core/global-config.test.ts > global-config > saveGlobalConfig > should write config to file: test/core/global-config.test.ts#L209
Error: ENOENT: no such file or directory, open 'C:\Users\RUNNER~1\AppData\Local\Temp\openspec-global-config-test-1766222264620\openspec\config.json' ❯ test/core/global-config.test.ts:209:26 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -4058, code: 'ENOENT', syscall: 'open', path: 'C:\Users\RUNNER~1\AppData\Local\Temp\openspec-global-config-test-1766222264620\openspec\config.json' }
test/core/global-config.test.ts > global-config > saveGlobalConfig > should create directory if it does not exist: test/core/global-config.test.ts#L200
AssertionError: expected false to be true // Object.is equality - Expected + Received - true + false ❯ test/core/global-config.test.ts:200:40
test/core/global-config.test.ts > global-config > getGlobalConfig > should merge loaded config with defaults: test/core/global-config.test.ts#L189
AssertionError: expected undefined to be true // Object.is equality - Expected: true + Received: undefined ❯ test/core/global-config.test.ts:189:47
test/core/global-config.test.ts > global-config > getGlobalConfig > should preserve unknown fields from config file: test/core/global-config.test.ts#L171
AssertionError: expected undefined to be 'preserved' // Object.is equality - Expected: "preserved" + Received: undefined ❯ test/core/global-config.test.ts:171:44
test/core/global-config.test.ts > global-config > getGlobalConfig > should log warning for invalid JSON: test/core/global-config.test.ts#L152
AssertionError: expected "error" to be called with arguments: [ StringContaining "Invalid JSON" ] Number of calls: 0 ❯ test/core/global-config.test.ts:152:31
test/core/global-config.test.ts > global-config > getGlobalConfig > should load valid config from file: test/core/global-config.test.ts#L126
AssertionError: expected {} to deeply equal { testFlag: true, anotherFlag: false } - Expected + Received - { - "anotherFlag": false, - "testFlag": true, - } + {} ❯ test/core/global-config.test.ts:126:35
test/core/global-config.test.ts > global-config > getGlobalConfigPath > should return path to config.json in config directory: test/core/global-config.test.ts#L92
AssertionError: expected 'C:\Users\runneradmin\AppData\Roaming\…' to be 'C:\Users\RUNNER~1\AppData\Local\Temp\…' // Object.is equality Expected: "C:\Users\RUNNER~1\AppData\Local\Temp\openspec-global-config-test-1766222264579\openspec\config.json" Received: "C:\Users\runneradmin\AppData\Roaming\openspec\config.json" ❯ test/core/global-config.test.ts:92:22
test/core/global-config.test.ts > global-config > getGlobalConfigDir > should use XDG_CONFIG_HOME when set: test/core/global-config.test.ts#L59
AssertionError: expected 'C:\Users\runneradmin\AppData\Roaming\…' to be 'C:\Users\RUNNER~1\AppData\Local\Temp\…' // Object.is equality Expected: "C:\Users\RUNNER~1\AppData\Local\Temp\openspec-global-config-test-1766222264560\openspec" Received: "C:\Users\runneradmin\AppData\Roaming\openspec" ❯ test/core/global-config.test.ts:59:22
All checks passed
Process completed with exit code 1.
Test (linux-bash)
No files were found with the provided path: coverage/. No artifacts will be uploaded.