(project: TestProject, path: string)
| 110 | } |
| 111 | |
| 112 | export function assertBrowserApiWrite(project: TestProject, path: string): void { |
| 113 | if (!project.config.browser.api.allowWrite || !project.vitest.config.api.allowWrite) { |
| 114 | throw new Error( |
| 115 | `Cannot modify file "${path}". File writing is disabled because the server is exposed to the internet, see https://vitest.dev/config/browser/api.`, |
| 116 | ) |
| 117 | } |
| 118 | } |
no outgoing calls
no test coverage detected