import CodeGenerator from '../../src'; import * as fs from 'fs'; import * as path from 'path'; import { createDiskPublisher } from '../helpers/solutionHelper'; const testCaseBaseName = path.basename(__filename, '.test.ts'); test(testCaseBaseName, async () => { const inputSchemaJsonFile = path.join(__dirname, `${testCaseBaseName}.schema.json`); const outputDir = path.join(__dirname, `${testCaseBaseName}.generated`); await exportProject(inputSchemaJsonFile, outputDir); const generatedPageFileContent = fs.readFileSync( path.join(outputDir, 'demo-project/src/pages/Test/index.jsx'), 'utf-8', ); expect(generatedPageFileContent).toContain(`