From 0b7f86044455941216b83346d3168075064ad558 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kaan=20=C3=96zhan?= Date: Sat, 26 Sep 2026 17:37:00 +0300 Subject: [PATCH] test(build): resolve fsSafe.js to its real source in the packaging check STR-01 ships the app's own src/main/fsSafe.js into .frame/bin/, while the build.files check from #160 assumed every copied file comes from scripts/. Both PRs were green on their own; together the check reported a missing scripts/fsSafe.js. The file is packaged through src/**/*, so only the check's source mapping was wrong. --- test/buildFiles.test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/buildFiles.test.js b/test/buildFiles.test.js index 23754a14..4c848f25 100644 --- a/test/buildFiles.test.js +++ b/test/buildFiles.test.js @@ -36,9 +36,12 @@ test('every script copied into .frame/bin/ is in build.files', () => { try { const copied = structureBootstrap.copyParserScripts(project); assert.ok(copied.length > 0, 'the staging copied something to check'); + // Where each copied name comes from: scripts/ in general, except the + // app's own atomic writer, which is shipped from src/main (STR-01). + const SOURCES = { 'fsSafe.js': 'src/main/fsSafe.js' }; const shipped = copied .filter((name) => name !== 'intent-map.json') // seeded per project, not copied - .map((name) => `scripts/${name}`); + .map((name) => SOURCES[name] || `scripts/${name}`); const missing = shipped.filter((rel) => !packaged(rel)); assert.deepEqual(missing, [], `add these to package.json build.files: ${missing.join(', ')}`); } finally {