feat: Enhance update requirements check to include database migrations and rename related interfaces and methods.
This commit is contained in:
@@ -95,16 +95,17 @@ describe("UpdateService", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe("checkDependencies", () => {
|
||||
test("should detect package.json change", async () => {
|
||||
const result = await UpdateService.checkDependencies("main");
|
||||
describe("checkUpdateRequirements", () => {
|
||||
test("should detect package.json and schema.ts changes", async () => {
|
||||
const result = await UpdateService.checkUpdateRequirements("main");
|
||||
|
||||
expect(result.needsInstall).toBe(true);
|
||||
expect(result.needsMigrations).toBe(false); // mock doesn't include schema.ts
|
||||
expect(result.error).toBeUndefined();
|
||||
});
|
||||
|
||||
test("should call git diff with correct branch", async () => {
|
||||
await UpdateService.checkDependencies("develop");
|
||||
await UpdateService.checkUpdateRequirements("develop");
|
||||
|
||||
const lastCall = mockExec.mock.lastCall;
|
||||
expect(lastCall).toBeDefined();
|
||||
|
||||
Reference in New Issue
Block a user