flows, listing translate, scan 2.2 + --originality, prices export with subscriptions, site sections
- storebound flow list|validate|run: repo-local workflows (store/workflows/*.yml, storebound.workflows.*), writes dry unless --apply, owner steps never run, --from / --resume; init templates for app and game; MCP flow_list + dry flow_run; release-flows skill - storebound listing translate|check|reviewed: per-language listing drafts with store limits and keyword rules, agent or --translate hook, marked until reviewed; MCP listing_translate / listing_check; listing-localization skill - scan: Apple 2.2 beta/demo/test wording rule; scan --originality [--against] - prices export includes subscriptions; prices import skips their rows - site: rejection scan section, Desktop app section with fixture-mode screenshots, Everything else grid, FAQ 4.3 answer - README, CHANGELOG, adapters, API tables
This commit is contained in:
parent
e44897ca4e
commit
526dfd3b09
45 changed files with 2176 additions and 53 deletions
|
|
@ -332,6 +332,25 @@ describe('config writing', () => {
|
|||
});
|
||||
|
||||
describe('integration', () => {
|
||||
test('2.2: beta / demo / test wording in the app name or the App Store text (not "demo account")', async () => {
|
||||
const dir = mkdtempSync(join(tmpdir(), 'storebound-scan-beta-'));
|
||||
try {
|
||||
cpSync(join(FX, 'clean'), dir, { recursive: true });
|
||||
const cfg = join(dir, 'storebound.config.ts');
|
||||
writeFileSync(cfg, readFileSync(cfg, 'utf8').replace("name: 'Clean Notes'", "name: 'Clean Notes Beta'"));
|
||||
const md = join(dir, 'store', 'appstore.md');
|
||||
const text = readFileSync(md, 'utf8');
|
||||
writeFileSync(md, text.replace(/(### description\n```\n)/, '$1This is a demo of the full app.\nReviewers use the demo account.\n'));
|
||||
const f = find((await runScan(dir)).report.findings, 'beta-wording', 'apple')!;
|
||||
expect(f.guideline).toBe('2.2');
|
||||
expect(f.severity).toBe('high');
|
||||
expect(f.evidence[0]!.text).toContain('Clean Notes Beta');
|
||||
expect(f.evidence.some(e => e.file === join('store', 'appstore.md') && /demo of the full app/.test(e.text))).toBe(true);
|
||||
writeFileSync(cfg, readFileSync(cfg, 'utf8').replace("'Clean Notes Beta'", "'Clean Notes'"));
|
||||
writeFileSync(md, text.replace(/(### description\n```\n)/, '$1Reviewers use the demo account. Start a free trial of Pro.\n'));
|
||||
expect(find((await runScan(dir)).report.findings, 'beta-wording')).toBeUndefined();
|
||||
} finally { rmSync(dir, { recursive: true, force: true }); }
|
||||
});
|
||||
test('JSON output, --store filter, exit code', () => {
|
||||
const r = Bun.spawnSync(['bun', CLI, 'scan', '--dir', join(FX, 'teaser'), '--json', '--store', 'apple'], { env: { ...process.env, REVIEW_DEMO_USER: '', REVIEW_DEMO_PASSWORD: '' } });
|
||||
expect(r.exitCode).toBe(1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue