Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion packages/cli/src/commands/hosting-add.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class HostingAdd {
type: 'confirm',
name: 'confirm',
message: p(2)('Do you want to sync files now?'),
default: false
default: true
}]

const response = await inquirer.prompt(syncQuestion)
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/tests/unit/commands-hosting-add.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ describe('[commands] Add Hosting', function () {
type: 'confirm',
name: 'confirm',
message: p(2)('Do you want to sync files now?'),
default: false
default: true
}

await hostingAdd.syncNewHosting()
Expand Down
4 changes: 2 additions & 2 deletions packages/tests/e2e/cli/hosting.test-e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('CLI Hosting', function () {
.on(/Do you want to use BrowserRouter/)
.respond('\n')
.on(/sync files now/)
.respond('\n')
.respond('N\n')
.stdout(/sync files use: npx s hosting sync/)
.code(0)
.end(done)
Expand All @@ -55,7 +55,7 @@ describe('CLI Hosting', function () {
.on(/Do you want to use BrowserRouter/)
.respond('\n')
.on(/sync files now/)
.respond('\n')
.respond('N\n')
.stdout(/sync files use: npx s hosting sync/)
.code(0)
.end(done)
Expand Down