You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/browser/commands.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Command is a function that invokes another function on the server and passes dow
11
11
12
12
### Files Handling
13
13
14
-
You can use `readFile`, `writeFile` and `removeFile`API to handle files inside your browser tests. All paths are resolved relative to the test file even if they are called in a helper function located in another file.
14
+
You can use the `readFile`, `writeFile`, and `removeFile`APIs to handle files in your browser tests. Since Vitest 3.2, all paths are resolved relative to the [project](/guide/workspace) root (which is `process.cwd()`, unless overriden manually). Previously, paths were resolved relative to the test file.
15
15
16
16
By default, Vitest uses `utf-8` encoding but you can override it with options.
0 commit comments