Skip to content

Commit

Permalink
chore: re-add android test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
phani-srikar committed Jul 16, 2023
1 parent a21ac9a commit db97995
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ describe('build app - Android', () => {
});

afterAll(async () => {
// rmSync(path.join(projectRoot, 'amplify'), { recursive: true, force: true });
rmSync(path.join(projectRoot, 'amplify'), { recursive: true, force: true });
});

afterEach(() => {
// rmSync(path.join(projectRoot, modelDir), { recursive: true, force: true });
rmSync(path.join(projectRoot, modelDir), { recursive: true, force: true });
});

Object.entries(schemas).forEach(([schemaName, schema]) => {
Expand All @@ -40,7 +40,6 @@ describe('build app - Android', () => {
const schemaText = `input AMPLIFY { globalAuthRule: AuthRule = { allow: public } }\n${schema.sdl}`;
updateApiSchemaWithText(projectRoot, apiName, schemaText);
await generateModels(projectRoot);
await acceptLicenses(projectRoot);
await androidBuild(projectRoot, { ...config });
};
if (skip.has(schemaName)) {
Expand Down

0 comments on commit db97995

Please sign in to comment.