一键导入
regenerate-fixtures
Regenerate all test fixtures and snapshot data from current pricing configuration. Destructive — overwrites existing test data.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Regenerate all test fixtures and snapshot data from current pricing configuration. Destructive — overwrites existing test data.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Audit all pricing data in the project against Microsoft's published rates. Runs in isolation to avoid cluttering the main conversation.
Validate that cost calculations produce correct results for given inputs. Read-only — cannot modify any files.
Use when working with Microsoft Sentinel pricing calculations, ingestion estimates, tier placement, retention costing, or compliance-driven retention scenarios. Loads current pricing data and calculation rules.
| name | regenerate-fixtures |
| description | Regenerate all test fixtures and snapshot data from current pricing configuration. Destructive — overwrites existing test data. |
| disable-model-invocation | true |
| allowed-tools | Read, Write, Edit, Bash, Glob, Grep |
This skill regenerates all test fixture data from the current pricing configuration. It overwrites existing test files, so it should only be run deliberately.
Invocation: /regenerate-fixtures — this skill will never auto-trigger.
Load all pricing data from src/data/:
pricing.ts — commitment tiers, PAYG rateslogSources.ts — log source definitions and ingestion rangesdefenderMapping.ts — M365 licence to Defender coverage mappingCreate test fixture files in src/__fixtures__/ with pre-computed expected values:
payg-fixtures.json:
[
{ "gbPerDay": 0, "monthlyUsd": 0, "monthlyGbp": 0 },
{ "gbPerDay": 1, "monthlyUsd": 158.29, "monthlyGbp": 125.05 },
{ "gbPerDay": 10, "monthlyUsd": 1582.88, "monthlyGbp": 1250.48 },
{ "gbPerDay": 50, "monthlyUsd": 7914.40, "monthlyGbp": 6252.38 },
{ "gbPerDay": 100, "monthlyUsd": 15828.80, "monthlyGbp": 12504.75 },
{ "gbPerDay": 500, "monthlyUsd": 79144.00, "monthlyGbp": 62523.76 }
]
tier-fixtures.json:
For each commitment tier, generate:
recommendation-fixtures.json:
For ingestion values at 5, 10, 25, 40, 60, 70, 100, 150, 250, 400, 800, 1500, 3000 GB/day:
defender-overlap-fixtures.json:
For each licence type (E3, E5, E5 Security), with a standard set of enabled sources:
Create src/__fixtures__/snapshot-inputs.json with 5 representative customer profiles:
For each profile, compute and store the expected:
If test files reference hardcoded expected values, update them to match the new fixtures.
Run npm test after regeneration to confirm all tests still pass with the updated fixtures.
Report: