Skip to content

Commit cf84500

Browse files
authored
feat: update inline hints and tips (#1021)
* feat: adds new inline tip structure for --record tip [sc-00] * feat: small qol changes to wording [sc-00] * test: update test snapshot [sc-00] * feat: adds update tip [sc-00] * test: update test (again?) [sc-00] * test: fix e2e first attempt [sc-00] * docs: adds `@latest` to create checkly where relevant [sc-00]
1 parent 9072477 commit cf84500

File tree

17 files changed

+32
-20
lines changed

17 files changed

+32
-20
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ First, make sure you sign up for a [free Checkly account](https://app.checklyhq.
7474
Then, the **easiest** way to get started is to install the CLI using the following command:
7575

7676
```bash
77-
npm create checkly
77+
npm create checkly@latest
7878
```
7979
This command will guide you through some simple steps and set up a fully working example project for you. Should take
8080
~1 minute.

examples/advanced-project-js/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ https://checklyhq.com website as a monitoring target.
88
3. Test -> Deploy: now you have your app monitored around the clock. All from your code base.
99

1010
```
11-
npm create checkly -- --template advanced-project
11+
npm create checkly@latest -- --template advanced-project
1212
```
1313

1414
## Project Structure

examples/advanced-project/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ https://checklyhq.com website as a monitoring target.
88
3. Test -> Deploy: now you have your app monitored around the clock. All from your code base.
99

1010
```
11-
npm create checkly -- --template advanced-project
11+
npm create checkly@latest -- --template advanced-project
1212
```
1313

1414
## Project Structure

examples/boilerplate-project-js/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ https://checklyhq.com website as a monitoring target.
77
2. Test -> Deploy: now you have your app monitored around the clock. All from your code base.
88

99
```
10-
npm create checkly -- --template boilerplate-project
10+
npm create checkly@latest -- --template boilerplate-project
1111
```
1212

1313
## Project Structure

examples/boilerplate-project/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ https://checklyhq.com website as a monitoring target.
77
2. Test -> Deploy: now you have your app monitored around the clock. All from your code base.
88

99
```
10-
npm create checkly -- --template boilerplate-project
10+
npm create checkly@latest -- --template boilerplate-project
1111
```
1212

1313
## Project Structure

packages/cli/e2e/__tests__/help.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('help', () => {
3030
expect(stdout).toContain(`CORE COMMANDS
3131
deploy Deploy your project to your Checkly account.
3232
test Test your checks on Checkly.
33-
trigger Trigger your checks on Checkly.`)
33+
trigger Trigger your existing checks on Checkly.`)
3434

3535
expect(stdout).toContain(`ADDITIONAL COMMANDS
3636
destroy Destroy your project with all its related resources.

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
],
5555
"warn-if-update-available": {
5656
"timeoutInDays": 30,
57-
"message": "<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."
57+
"message": "<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>. To update, run `npm install -D checkly@latest`"
5858
},
5959
"topics": {
6060
"env": {

packages/cli/src/commands/trigger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const MAX_RETRIES = 3
2626
export default class Trigger extends AuthCommand {
2727
static coreCommand = true
2828
static hidden = false
29-
static description = 'Trigger your checks on Checkly.'
29+
static description = 'Trigger your existing checks on Checkly.'
3030
static flags = {
3131
location: Flags.string({
3232
char: 'l',

packages/cli/src/help/examples.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,13 @@ type Example = {
55

66
const examples: Array<Example> = [
77
{
8-
description: 'Test your checks on Checkly with full logging.',
9-
command: 'npx checkly test -v',
8+
description: 'Record your test session in Checkly with logs, traces and videos.',
9+
command: 'npx checkly test --record',
1010
},
1111
{
1212
description: 'Pass environment variables to your checks.',
1313
command: 'npx checkly test -e SECRET=my-password',
1414
},
15-
{
16-
description: 'Record your test session in Checkly with logs, traces and videos.',
17-
command: 'npx checkly test --record',
18-
},
1915
{
2016
description: 'Deploy your project to your Checkly account.',
2117
command: 'npx checkly deploy',

packages/cli/src/messages/common-messages.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ const commonMessages = {
22
forceMode: 'Force mode. Skips the confirmation dialog.',
33
configFile: 'The Checkly CLI configuration file. If not passed, uses the checkly.config.ts|js file in the current' +
44
' directory.',
5+
inlineTips: {
6+
useRecordFlag: 'Use `--record` to get test results in Checkly with full traces, videos and logs: `npx checkly test --record`',
7+
},
58
}
69

710
export default commonMessages

0 commit comments

Comments
 (0)