diff --git a/src/fn/initialise-project-layout.js b/src/fn/initialise-project-layout.js index fd25d900c..0f58553d4 100644 --- a/src/fn/initialise-project-layout.js +++ b/src/fn/initialise-project-layout.js @@ -5,10 +5,15 @@ const fs = require('../lib/sync-fs'); const { info } = require('../lib/log'); const LAYOUT = { - 'contact-summary.js': '', + 'contact-summary.templated.js': `module.exports = { + fields: [], + cards: [], + context: {} +};`, 'privacy-policies.json': {}, 'privacy-policies': {}, 'resources.json': {}, + 'harness.defaults.json': {}, resources: {}, 'targets.js': 'module.exports = [];', 'tasks.js': 'module.exports = [];', @@ -32,6 +37,12 @@ const LAYOUT = { 'forms.json': {}, 'schedules.json': [], }, + test: { + forms: {}, + 'contact-summary': {}, + tasks: {}, + targets: {} + } }; function createRecursively(dir, layout) { diff --git a/test/fn/initialise-project-layout.spec.js b/test/fn/initialise-project-layout.spec.js index 0aa111254..aff39d64b 100644 --- a/test/fn/initialise-project-layout.spec.js +++ b/test/fn/initialise-project-layout.spec.js @@ -17,7 +17,7 @@ describe('initialise-project-layout', () => { initialiseProjectLayout.execute(); // then - assertExists('contact-summary.js'); + assertExists('contact-summary.templated.js'); assertExists('forms/app'); assertExists('forms/collect'); assertExists('forms/contact'); @@ -30,6 +30,11 @@ describe('initialise-project-layout', () => { assertExists('app_settings/base_settings.json'); assertExists('app_settings/forms.json'); assertExists('app_settings/schedules.json'); + assertExists('harness.defaults.json'); + assertExists('test/forms'); + assertExists('test/contact-summary'); + assertExists('test/tasks'); + assertExists('test/targets'); }); });