Add applicationId to syncableEntity and fix syncApp deletion (#15170)
## Context - All flatEntity should extend SyncableEntity - SyncableEntity should now have applicationId and application relation - Fix syncApp deletion, should now properly use migration v2 to delete syncable entities
This commit is contained in:
+11
-15
@@ -15,15 +15,14 @@ describe.each(COVERED_APPLICATION_FOLDERS)(
|
||||
expect(existsSync(appPath)).toBe(true);
|
||||
});
|
||||
|
||||
// TODO uncomment when reinstall is fix to cleanup gracefully
|
||||
// afterAll(async () => {
|
||||
// const result = await deleteCommand.execute({
|
||||
// appPath,
|
||||
// askForConfirmation: false,
|
||||
// });
|
||||
afterAll(async () => {
|
||||
const result = await deleteCommand.execute({
|
||||
appPath,
|
||||
askForConfirmation: false,
|
||||
});
|
||||
|
||||
// expect(result.success).toBe(true);
|
||||
// });
|
||||
expect(result.success).toBe(true);
|
||||
});
|
||||
|
||||
it(`should successfully install ${applicationName} application`, async () => {
|
||||
const result = await syncCommand.execute(appPath);
|
||||
@@ -40,13 +39,10 @@ describe.each(COVERED_APPLICATION_FOLDERS)(
|
||||
expect(result.success).toBe(true);
|
||||
});
|
||||
|
||||
it.failing(
|
||||
`should successfully re-install ${applicationName} application`,
|
||||
async () => {
|
||||
const result = await syncCommand.execute(appPath);
|
||||
it(`should successfully re-install ${applicationName} application`, async () => {
|
||||
const result = await syncCommand.execute(appPath);
|
||||
|
||||
expect(result.success).toBe(true);
|
||||
},
|
||||
);
|
||||
expect(result.success).toBe(true);
|
||||
});
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user