]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs(testing): clarify createSpy docs (#2195)
authorLeon Heess <leon@heess.me>
Thu, 11 May 2023 09:49:14 +0000 (11:49 +0200)
committerGitHub <noreply@github.com>
Thu, 11 May 2023 09:49:14 +0000 (11:49 +0200)
packages/testing/src/testing.ts

index a3e169ab2914f67158c15084def62fa3ec31ed04..a9f7760a6e66afe0778eca7fd582212630baec7e 100644 (file)
@@ -65,7 +65,8 @@ export interface TestingOptions {
 
   /**
    * Function used to create a spy for actions and `$patch()`. Pre-configured
-   * with `jest.fn()` in jest projects or `vi.fn()` in vitest projects.
+   * with `jest.fn` in Jest projects or `vi.fn` in Vitest projects if 
+   * `globals: true` is set.
    */
   createSpy?: (fn?: (...args: any[]) => any) => (...args: any[]) => any
 }