Skip to content

Commit 9d5b46d

Browse files
Merge pull request #7905 from Shopify/06-23-clarify_filesystem_testing_guidance
Clarify filesystem testing guidance
2 parents 3340ff3 + a9d2115 commit 9d5b46d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/cli/testing-strategy.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pnpm test path/to/my.test.ts
3737
```
3838

3939
### Filesystem I/O and temporary directories
40-
If the subject under testing does a filesystem I/O operation, we recommend not stubbing that behavior instead of hitting the filesystem. Create a temporary directory whose lifecycle is tied to the lifecycle of the test:
40+
If the subject under test performs filesystem I/O, prefer using a temporary directory instead of stubbing the filesystem. Create a temporary directory whose lifecycle is tied to the lifecycle of the test:
4141

4242
```ts
4343
import {file, path} from "@shopify/cli-kit"

0 commit comments

Comments
 (0)