tests copy the demo app as git has it: the example's gitignored .storebound/, renders, frames and video of a local checkout stay out of the temp copy (edit.test.ts failed on a local .storebound/, the boot check's store art case opened a local ios69 render instead of its pulled Play shot)

This commit is contained in:
CRTkafa 2026-10-14 06:10:39 +08:00
parent 658807b219
commit 1f27bfbeed
2 changed files with 13 additions and 3 deletions

View file

@ -243,7 +243,8 @@ describe('planEdits: old -> new, the diff per file, the checks', () => {
describe('CLI: storebound edit on a copy of the demo app', () => {
const copy = (): string => {
const dir = mkdtempSync(join(tmpdir(), 'sb-edit-'));
cpSync(join(ROOT, 'examples', 'demo-app'), dir, { recursive: true });
// only the tracked example: the gitignored .storebound/, renders, frames and video of a local checkout stay out
cpSync(join(ROOT, 'examples', 'demo-app'), dir, { recursive: true, filter: (src) => !/(^|[\\/])(\.storebound|renders|frames|video)([\\/]|$)/.test(src.slice(join(ROOT, 'examples', 'demo-app').length)) });
return dir;
};
test('--show lists what the editors show', async () => {