Skip to content

Commit e5d5459

Browse files
committed
feat(ui): add link to changes page in major-update task
1 parent 4a37e39 commit e5d5459

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

lib/tasks/major-update/ui.js

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ module.exports = async function ui(ctx) {
5252
}
5353

5454
ctx.ui.log(`You can also check theme compatibility at ${chalk.cyan('https://gscan.ghost.org')}\n`);
55+
ctx.ui.log(`Please review the full list of breaking changes at ${chalk.cyan('https://ghost.org/docs/changes/')}\n`);
5556
} else {
5657
let message = '';
5758

@@ -92,6 +93,7 @@ module.exports = async function ui(ctx) {
9293
}
9394

9495
ctx.ui.log(`You can also check theme compatibility at ${chalk.cyan('https://gscan.ghost.org')}\n`);
96+
ctx.ui.log(`Please review the full list of breaking changes at ${chalk.cyan('https://ghost.org/docs/changes/')}\n`);
9597
}
9698
}
9799

test/unit/tasks/major-update/ui-spec.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('Unit: Tasks > Major Update > UI', function () {
4848
});
4949

5050
await ui(ctx);
51-
expect(ctx.ui.log.callCount).to.eql(4);
51+
expect(ctx.ui.log.callCount).to.eql(5);
5252
expect(ctx.ui.confirm.calledOnce).to.be.true;
5353
expect(ctx.ui.confirm.args[0][1], 'confirm prompt default should be true').to.be.true;
5454
});
@@ -74,7 +74,7 @@ describe('Unit: Tasks > Major Update > UI', function () {
7474
});
7575

7676
await ui(ctx);
77-
expect(ctx.ui.log.callCount).to.eql(6);
77+
expect(ctx.ui.log.callCount).to.eql(7);
7878
expect(ctx.ui.confirm.calledTwice).to.be.true;
7979
expect(ctx.ui.confirm.args[1][1], 'confirm prompt default should be false').to.be.false;
8080

@@ -111,7 +111,7 @@ describe('Unit: Tasks > Major Update > UI', function () {
111111
});
112112

113113
await ui(ctx);
114-
expect(ctx.ui.log.callCount).to.eql(7);
114+
expect(ctx.ui.log.callCount).to.eql(8);
115115
expect(ctx.ui.confirm.calledTwice).to.be.true;
116116
expect(ctx.ui.confirm.args[1][1], 'confirm prompt default should be false').to.be.false;
117117

@@ -154,7 +154,7 @@ describe('Unit: Tasks > Major Update > UI', function () {
154154
expect(err.message).to.match(/Update aborted/);
155155
expect(err.logMessageOnly).to.be.true;
156156

157-
expect(ctx.ui.log.callCount).to.eql(8);
157+
expect(ctx.ui.log.callCount).to.eql(9);
158158
expect(ctx.ui.confirm.calledTwice).to.be.true;
159159

160160
const output = stripAnsi(ctx.ui.log.args.join(' '));
@@ -203,7 +203,7 @@ describe('Unit: Tasks > Major Update > UI', function () {
203203
expect(err.message).to.match(/Migration failed. Your theme has fatal errors/);
204204
expect(err.logMessageOnly).to.exist;
205205

206-
expect(ctx.ui.log.callCount).to.eql(9);
206+
expect(ctx.ui.log.callCount).to.eql(10);
207207
expect(ctx.ui.confirm.calledOnce).to.be.true;
208208

209209
const output = stripAnsi(ctx.ui.log.args.join(' '));

0 commit comments

Comments
 (0)