Commit 5846d4b
committed
[Tests] Remove filesystem mocks in execute-operation.test.ts
Refactor packages/app/src/cli/services/execute-operation.test.ts to
remove global filesystem mocking. By eliminating
vi.mock('@shopify/cli-kit/node/fs'), the tests now interact with the
real filesystem within an isolated inTemporaryDirectory. Brittle
implementation-coupled assertions on writeFile call counts are
replaced with behavioral assertions that verify the resultant file
state using readFile.
Duplicate check:
Ran 'git log --grep="\[Tests\]" --oneline' and verified no previous
PR refactored this specific file to remove filesystem mocks.1 parent ab07b6a commit 5846d4b
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
219 | 218 | | |
220 | 219 | | |
221 | 220 | | |
222 | | - | |
223 | 221 | | |
224 | 222 | | |
225 | 223 | | |
| |||
238 | 236 | | |
239 | 237 | | |
240 | 238 | | |
241 | | - | |
| 239 | + | |
242 | 240 | | |
243 | 241 | | |
244 | 242 | | |
| |||
0 commit comments