mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-25 08:48:08 +02:00
test: add codex backend live smoke
This commit is contained in:
parent
2b84b8b173
commit
09646dee48
5 changed files with 181 additions and 0 deletions
18
scripts/codex-backend-live-smoke.test.mjs
Normal file
18
scripts/codex-backend-live-smoke.test.mjs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import assert from 'node:assert/strict';
|
||||
import test from 'node:test';
|
||||
import { codexBackendSmokeOptIn } from './codex-backend-live-smoke.mjs';
|
||||
|
||||
test('codex backend smoke stays disabled by default', () => {
|
||||
assert.deepEqual(codexBackendSmokeOptIn({}, []), {
|
||||
run: false,
|
||||
message: 'Set KTX_RUN_CODEX_BACKEND_SMOKE=1 or pass --force to run the Codex backend live smoke.',
|
||||
});
|
||||
});
|
||||
|
||||
test('codex backend smoke runs with env opt-in', () => {
|
||||
assert.deepEqual(codexBackendSmokeOptIn({ KTX_RUN_CODEX_BACKEND_SMOKE: '1' }, []), { run: true });
|
||||
});
|
||||
|
||||
test('codex backend smoke runs with force flag', () => {
|
||||
assert.deepEqual(codexBackendSmokeOptIn({}, ['--force']), { run: true });
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue