Skip to content

Commit c70110a

Browse files
chore(deps): lock file maintenance (#843)
This PR contains the following updates: | Update | Change | |---|---| | lockFileMaintenance | All locks refreshed | 🔧 This Pull Request updates lock files to use the latest dependency versions. --- ### Configuration 📅 **Schedule**: Branch creation - "before 2am" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/apify/apify-cli). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC42Mi4xIiwidXBkYXRlZEluVmVyIjoiNDAuNjIuMSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Vlad Frangu <[email protected]>
1 parent 4ba12db commit c70110a

File tree

4 files changed

+1062
-1031
lines changed

4 files changed

+1062
-1031
lines changed

features/builds-namespace.feature.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@
5454

5555
- Given the local Actor is pushed to the Apify platform
5656
- When I run:
57+
5758
```
5859
$ apify builds create --json
5960
```
61+
6062
- Then I can read valid JSON on stdout
6163

6264
## Rule: Printing information about builds works

features/test-implementations/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,28 @@ Currently, the following phrases are implemented:
4545
- `given the actor implementation doesn't throw itself`
4646
- `given the following input provided via standard input`
4747
- Example:
48+
4849
```
4950
Given the following input provided via standard input
5051
"""
5152
{"foo":"bar"}
5253
"""
5354
```
55+
5456
- This step supports providing input to the CLI via stdin. This is useful for testing CLI commands that can optionally accept standard input.
57+
5558
- `given the following input provided via file \`<filename>\``
5659
- Example:
60+
5761
```
5862
Given the following input provided via file `input.json`
5963
"""
6064
{"foo":"bar"}
6165
"""
6266
```
67+
6368
- This step supports providing input to the CLI via a file.
69+
6470
- `given a logged in apify console user`
6571
- This step ensures the test is ran assuming a logged in user on the Apify console.
6672
- `given the local actor is pushed to the apify platform`
@@ -76,22 +82,28 @@ Currently, the following phrases are implemented:
7682

7783
- `when I run:` followed by a code block consisting of a CLI command (optionally prefixed with `$`)
7884
- Example:
85+
7986
```
8087
When I run:
8188
`​`​`
8289
$ apify actor run --input='{"foo":"bar"}'
8390
`​`​`
8491
```
92+
8593
- This step supports running only CLI commands. It also expects only **one** command to be ran. Any more than one command will result in an error (this is done for simplicity sake)
8694
- When referring to the CLI, you should mention the `apify` binary (as if you'd write this in a terminal). For testing sake, when we actually run the command, it will instead call the `tsx ./bin/dev.js` script, meaning changes that you do to the CLI will be reflected in the tests without needing a rebuild.
95+
8796
- `when i capture the <type> id`
8897
- Example:
98+
8999
```
90100
When I capture the build ID
91101
```
102+
92103
- This step captures the ID of the specified type and stores it in the world. This is useful for checking the output of the CLI, as some variables may be needed to check the output of the actor run.
93104
- Currently, the following types are implemented:
94105
- `build`: captures the ID of the build that was created
106+
95107
- `when i run with captured data`
96108
- Identical to `when I run`, with the only difference being that you can use it in conjunction with `when i capture the <type> id` to run the CLI with the captured data.
97109

@@ -103,40 +115,52 @@ Currently, the following phrases are implemented:
103115

104116
- `then the local run has an input JSON:` followed by a code block consisting of a JSON object
105117
- Example:
118+
106119
```
107120
Then the local run has an input JSON:
108121
`​`​`
109122
{"foo":"bar"}
110123
`​`​`
111124
```
125+
112126
- This step checks the input of the actor run. It expects the input to be a JSON object. If the input is not a JSON object, an error will be thrown. This will ensure the overridden input is correctly passed to the actor run.
127+
113128
- `then the local actor run has started`
114129
- This step checks if the actor run has actually started.
115130
- `then the local actor run hasn't even started`
116131
- This step checks if the actor run hasn't started. If the actor run has started, an error will be thrown.
117132
- ``then the exit status code is `<number>`​``
118133
- Example:
134+
119135
```
120136
Then the exit status code is `0`
121137
```
138+
122139
- This step checks the exit status code of the CLI. If the exit status code is not the same as the one provided, an error will be thrown.
140+
123141
- ``then the exit status code is not `<number>`​``
124142
- Example:
143+
125144
```
126145
Then the exit status code is not `0`
127146
```
147+
128148
- This step checks the exit status code of the CLI. If the exit status code is the same as the one provided, an error will be thrown.
149+
129150
- `then I don't see any Node.js exception`
130151
- This step checks if there are any Node.js exceptions in the output. If there are any, an error will be thrown.
131152
- `then I can read text on stderr:` followed by a code block consisting of a string
132153
- Example:
154+
133155
```
134156
Then I can read text on stderr:
135157
`​`​`
136158
use "--input-file=" flag instead
137159
`​`​`
138160
```
161+
139162
- This step checks if the text provided is in the stderr output. If the text is not in the stderr output, an error will be thrown.
163+
140164
- `then i can read text on stdout:` followed by a code block consisting of a string
141165
- Example:
142166
```

0 commit comments

Comments
 (0)