]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
chore: fix comments
authorThomas Kint <thomaskint.pro@gmail.com>
Tue, 25 Jan 2022 15:13:54 +0000 (16:13 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 28 Feb 2022 16:50:17 +0000 (17:50 +0100)
packages/testing/src/testing.ts

index ed05940eb185c96e2e63db8d9e13579a24eae65a..994073589e81ad87d2c050a54a858e7fbfc52730 100644 (file)
@@ -46,7 +46,7 @@ export interface TestingOptions {
 
   /**
    * Function used to create a spy for actions and `$patch()`. Pre-configured
-   * with `jest.fn()` in jest projects or `vitest.fn()` in vitest projects
+   * with `jest.fn()` in jest projects or `vitest.fn()` in vitest projects.
    */
   createSpy?: (fn?: (...args: any[]) => any) => (...args: any[]) => any
 }
@@ -64,8 +64,8 @@ export interface TestingPinia extends Pinia {
  * Creates a pinia instance designed for unit tests that **requires mocking**
  * the stores. By default, **all actions are mocked** and therefore not
  * executed. This allows you to unit test your store and components separately.
- * You can change this with the `stubActions` option. If you are using jest or vitest,
- * they are replaced with basic `fn()`, otherwise, you must provide your own
+ * You can change this with the `stubActions` option. If you are using jest,
+ * they are replaced with `jest.fn()`, otherwise, you must provide your own
  * `createSpy` option.
  *
  * @param options - options to configure the testing pinia