const { readFileSync } = require('node:fs'); const path = require('node:path'); const toolkitPlaceholderFiles = [ 'audio.json', 'credits.json', 'endings.json', 'factions.json', 'flags.json', 'lore.json', 'map.json', 'opening.json', 'petitioners.json', 'references.json', 'resources.json', 'rulings.json', 'seed.json', 'story.json', ]; describe('toolkit data placeholders', () => { it('provides an empty array JSON file for every toolkit section', () => { for (const fileName of toolkitPlaceholderFiles) { const filePath = path.join( process.cwd(), 'src', 'data', 'toolkit', fileName, ); const content = JSON.parse(readFileSync(filePath, 'utf8')); expect(content).toEqual([]); } }); });