Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion integ-test/test-construct.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ describe('test construct', () => {

beforeAll(async () => {
projRoot = path.join(__dirname, 'exportTestProject');
categoryStackMapping = JSON.parse(fs.readFileSync(path.join(`amplify-export-${projectName}`, 'category-stack-mapping.json'), { encoding: 'utf-8' })) as CategoryStackMapping[];

exportProj = path.join(__dirname);
expect(process.env.AWS_ACCESS_KEY_ID).toBeDefined();
Expand Down Expand Up @@ -51,6 +50,8 @@ describe('test construct', () => {
fs.ensureDirSync(exportProj);
await exportBackend(projRoot, { exportPath: exportProj });
fs.moveSync(path.join('integ-test', `amplify-export-${projectName}`), path.join(`amplify-export-${projectName}`));
categoryStackMapping = JSON.parse(fs.readFileSync(path.join(`amplify-export-${projectName}`, 'category-stack-mapping.json'), { encoding: 'utf-8' })) as CategoryStackMapping[];

const app = new cdk.App();
exportedBackendConstruct = new AmplifyExportedBackend(app, 'amplify-exported-backend', {
path: `amplify-export-${projectName}`,
Expand Down