docs(config-audit): cache-telemetry recipe + --with-telemetry-recipe flag (v5 M7)
This commit is contained in:
parent
e1e23edbcd
commit
df6e012903
4 changed files with 152 additions and 1 deletions
|
|
@ -42,6 +42,30 @@ describe('token-hotspots-cli', () => {
|
|||
await unlink(out).catch(() => {});
|
||||
}
|
||||
});
|
||||
|
||||
it('omits telemetry_recipe_path when --with-telemetry-recipe is absent', async () => {
|
||||
const { stdout } = await exec('node', [CLI, FIXTURE, '--json'], {
|
||||
timeout: 30000,
|
||||
cwd: REPO,
|
||||
});
|
||||
const json = JSON.parse(stdout);
|
||||
assert.equal(json.telemetry_recipe_path, undefined,
|
||||
'telemetry_recipe_path must NOT appear without the flag');
|
||||
});
|
||||
|
||||
it('includes telemetry_recipe_path when --with-telemetry-recipe is passed', async () => {
|
||||
const { stdout } = await exec('node', [CLI, FIXTURE, '--json', '--with-telemetry-recipe'], {
|
||||
timeout: 30000,
|
||||
cwd: REPO,
|
||||
});
|
||||
const json = JSON.parse(stdout);
|
||||
assert.equal(typeof json.telemetry_recipe_path, 'string');
|
||||
assert.ok(json.telemetry_recipe_path.length > 0, 'expected non-empty path');
|
||||
assert.ok(
|
||||
json.telemetry_recipe_path.endsWith('cache-telemetry-recipe.md'),
|
||||
`expected path to end with cache-telemetry-recipe.md, got ${json.telemetry_recipe_path}`
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe('scan-orchestrator integration — TOK hotspots survive envelope', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue