Skip to content

Commit 5af08a9

Browse files
Fix acceptance test
1 parent 0507279 commit 5af08a9

File tree

3 files changed

+101
-90
lines changed

3 files changed

+101
-90
lines changed
Lines changed: 98 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -1,86 +1,98 @@
1-
┌────────────────────────────────┬──────────────┐
2-
│ Id │ Plugin │
3-
├────────────────────────────────┼──────────────┤
4-
│ app build │ @shopify/cli │
5-
│ app config link │ @shopify/cli │
6-
│ app config use │ @shopify/cli │
7-
│ app deploy │ @shopify/cli │
8-
│ app dev │ @shopify/cli │
9-
│ app env pull │ @shopify/cli │
10-
│ app env show │ @shopify/cli │
11-
│ app function build │ @shopify/cli │
12-
│ app function replay │ @shopify/cli │
13-
│ app function run │ @shopify/cli │
14-
│ app function schema │ @shopify/cli │
15-
│ app function typegen │ @shopify/cli │
16-
│ app generate extension │ @shopify/cli │
17-
│ app import-extensions │ @shopify/cli │
18-
│ app info │ @shopify/cli │
19-
│ app init │ @shopify/cli │
20-
│ app logs │ @shopify/cli │
21-
│ app logs sources │ @shopify/cli │
22-
│ app release │ @shopify/cli │
23-
│ app versions list │ @shopify/cli │
24-
│ app webhook trigger │ @shopify/cli │
25-
│ auth logout │ @shopify/cli │
26-
│ commands │ @shopify/cli │
27-
│ config autocorrect off │ @shopify/cli │
28-
│ config autocorrect on │ @shopify/cli │
29-
│ config autocorrect status │ @shopify/cli │
30-
│ help │ @shopify/cli │
31-
│ hydrogen build │ @shopify/cli │
32-
│ hydrogen check │ @shopify/cli │
33-
│ hydrogen codegen │ @shopify/cli │
34-
│ hydrogen customer-account-push │ @shopify/cli │
35-
│ hydrogen debug cpu │ @shopify/cli │
36-
│ hydrogen deploy │ @shopify/cli │
37-
│ hydrogen dev │ @shopify/cli │
38-
│ hydrogen env list │ @shopify/cli │
39-
│ hydrogen env pull │ @shopify/cli │
40-
│ hydrogen env push │ @shopify/cli │
41-
│ hydrogen generate route │ @shopify/cli │
42-
│ hydrogen generate routes │ @shopify/cli │
43-
│ hydrogen init │ @shopify/cli │
44-
│ hydrogen link │ @shopify/cli │
45-
│ hydrogen list │ @shopify/cli │
46-
│ hydrogen login │ @shopify/cli │
47-
│ hydrogen logout │ @shopify/cli │
48-
│ hydrogen preview │ @shopify/cli │
49-
│ hydrogen setup │ @shopify/cli │
50-
│ hydrogen setup css │ @shopify/cli │
51-
│ hydrogen setup markets │ @shopify/cli │
52-
│ hydrogen setup vite │ @shopify/cli │
53-
│ hydrogen shortcut │ @shopify/cli │
54-
│ hydrogen unlink │ @shopify/cli │
55-
│ hydrogen upgrade │ @shopify/cli │
56-
│ plugins add │ @shopify/cli │
57-
│ plugins inspect │ @shopify/cli │
58-
│ plugins install │ @shopify/cli │
59-
│ plugins link │ @shopify/cli │
60-
│ plugins remove │ @shopify/cli │
61-
│ plugins reset │ @shopify/cli │
62-
│ plugins uninstall │ @shopify/cli │
63-
│ plugins unlink │ @shopify/cli │
64-
│ plugins update │ @shopify/cli │
65-
│ search │ @shopify/cli │
66-
│ theme check │ @shopify/cli │
67-
│ theme console │ @shopify/cli │
68-
│ theme delete │ @shopify/cli │
69-
│ theme dev │ @shopify/cli │
70-
│ theme info │ @shopify/cli │
71-
│ theme init │ @shopify/cli │
72-
│ theme language-server │ @shopify/cli │
73-
│ theme list │ @shopify/cli │
74-
│ theme metafields pull │ @shopify/cli │
75-
│ theme open │ @shopify/cli │
76-
│ theme package │ @shopify/cli │
77-
│ theme profile │ @shopify/cli │
78-
│ theme publish │ @shopify/cli │
79-
│ theme pull │ @shopify/cli │
80-
│ theme push │ @shopify/cli │
81-
│ theme rename │ @shopify/cli │
82-
│ theme share │ @shopify/cli │
83-
│ upgrade │ @shopify/cli │
84-
│ version │ @shopify/cli │
85-
└────────────────────────────────┴──────────────┘
86-
1+
├─ app
2+
│ ├─ build
3+
│ ├─ config
4+
│ │ ├─ link
5+
│ │ └─ use
6+
│ ├─ deploy
7+
│ ├─ dev
8+
│ ├─ env
9+
│ │ ├─ pull
10+
│ │ └─ show
11+
│ ├─ function
12+
│ │ ├─ build
13+
│ │ ├─ replay
14+
│ │ ├─ run
15+
│ │ ├─ schema
16+
│ │ └─ typegen
17+
│ ├─ generate
18+
│ │ └─ extension
19+
│ ├─ import-extensions
20+
│ ├─ info
21+
│ ├─ init
22+
│ ├─ logs
23+
│ │ └─ sources
24+
│ ├─ release
25+
│ ├─ versions
26+
│ │ └─ list
27+
│ └─ webhook
28+
│ └─ trigger
29+
├─ auth
30+
│ └─ logout
31+
├─ commands
32+
├─ config
33+
│ └─ autocorrect
34+
│ ├─ off
35+
│ ├─ on
36+
│ └─ status
37+
├─ help
38+
├─ hydrogen
39+
│ ├─ build
40+
│ ├─ check
41+
│ ├─ codegen
42+
│ ├─ customer-account-push
43+
│ ├─ debug
44+
│ │ └─ cpu
45+
│ ├─ deploy
46+
│ ├─ dev
47+
│ ├─ env
48+
│ │ ├─ list
49+
│ │ ├─ pull
50+
│ │ └─ push
51+
│ ├─ generate
52+
│ │ ├─ route
53+
│ │ └─ routes
54+
│ ├─ init
55+
│ ├─ link
56+
│ ├─ list
57+
│ ├─ login
58+
│ ├─ logout
59+
│ ├─ preview
60+
│ ├─ setup
61+
│ │ ├─ css
62+
│ │ ├─ markets
63+
│ │ └─ vite
64+
│ ├─ shortcut
65+
│ ├─ unlink
66+
│ └─ upgrade
67+
├─ plugins
68+
│ ├─ add
69+
│ ├─ inspect
70+
│ ├─ install
71+
│ ├─ link
72+
│ ├─ remove
73+
│ ├─ reset
74+
│ ├─ uninstall
75+
│ ├─ unlink
76+
│ └─ update
77+
├─ search
78+
├─ theme
79+
│ ├─ check
80+
│ ├─ console
81+
│ ├─ delete
82+
│ ├─ dev
83+
│ ├─ info
84+
│ ├─ init
85+
│ ├─ language-server
86+
│ ├─ list
87+
│ ├─ metafields
88+
│ │ └─ pull
89+
│ ├─ open
90+
│ ├─ package
91+
│ ├─ profile
92+
│ ├─ publish
93+
│ ├─ pull
94+
│ ├─ push
95+
│ ├─ rename
96+
│ └─ share
97+
├─ upgrade
98+
└─ version

packages/features/snapshots/regenerate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ set -euo pipefail
66
cd "$(dirname "$0")"
77

88
# regenerate commands snapshot file
9-
../../cli/bin/dev.js commands --columns=id,plugin > commands.txt
9+
../../cli/bin/dev.js commands --tree > commands.txt

packages/features/steps/commands.steps.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@ the diff below and figure out what is broken.
2020
`
2121

2222
When(/I list the available commands/, async function () {
23-
const commandFlags = ['commands', '--columns=id,plugin']
23+
const commandFlags = ['commands', '--tree']
2424
this.commandResult = (await this.execCLI(commandFlags)).stdout
2525
})
2626

2727
Then(/I see all commands matching the snapshot/, async function () {
2828
const snapshot: string = await fs.readFile('snapshots/commands.txt', {encoding: 'utf8'})
29-
const normalize = (value: string) => value.replace(/\r\n/g, '\n').replace(/\s/g, '').trimEnd().split('\n').join('\n')
30-
29+
const normalize = (value: string) => value.replace(/\r\n/g, '\n').trimEnd()
3130
assert.equal(normalize(snapshot), normalize(this.commandResult), errorMessage)
3231
})

0 commit comments

Comments
 (0)