@testforgejs/vue-test-plugin-pinia 1.0.0-beta.5 → 1.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +14 -10
- package/dist/index.d.ts +14 -10
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -21,15 +21,19 @@ type MockStoresFn = (pinia: TestingPinia) => void;
|
|
|
21
21
|
/**
|
|
22
22
|
* Configuration options for the Pinia test plugin.
|
|
23
23
|
*
|
|
24
|
-
* Combines
|
|
25
|
-
*
|
|
24
|
+
* Combines native Pinia testing options with TestForge-specific
|
|
25
|
+
* controls for managed plugin instances and store initialization.
|
|
26
26
|
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
27
|
+
* Instance capturing is handled internally by TestForge using
|
|
28
|
+
* `captureInstance<TestingPinia>()`.
|
|
29
|
+
*
|
|
30
|
+
* @see `TestingOptions` from `@pinia/testing` for native Pinia testing configuration.
|
|
31
|
+
* @see `PluginControlOptions` from `@testforgejs/vue-test-core` for type-safe instance capturing.
|
|
29
32
|
*/
|
|
30
|
-
|
|
33
|
+
type VueTestPiniaOptions = TestingOptions & PluginControlOptions<TestingPinia> & {
|
|
31
34
|
/**
|
|
32
|
-
* A callback
|
|
35
|
+
* A callback for initializing or modifying Pinia stores after the
|
|
36
|
+
* testing Pinia instance is created and before the component is mounted.
|
|
33
37
|
*
|
|
34
38
|
* @example
|
|
35
39
|
* ```ts
|
|
@@ -39,14 +43,14 @@ interface VueTestPiniaOptions extends TestingOptions, PluginControlOptions<Testi
|
|
|
39
43
|
* mockStores: (pinia) => {
|
|
40
44
|
* const store = useCounterStore(pinia);
|
|
41
45
|
* store.count = 42;
|
|
42
|
-
* }
|
|
43
|
-
* }
|
|
44
|
-
* }
|
|
46
|
+
* },
|
|
47
|
+
* },
|
|
48
|
+
* },
|
|
45
49
|
* });
|
|
46
50
|
* ```
|
|
47
51
|
*/
|
|
48
52
|
mockStores?: MockStoresFn;
|
|
49
|
-
}
|
|
53
|
+
};
|
|
50
54
|
|
|
51
55
|
/**
|
|
52
56
|
* TestForge core type augmentation for Pinia integration.
|
package/dist/index.d.ts
CHANGED
|
@@ -21,15 +21,19 @@ type MockStoresFn = (pinia: TestingPinia) => void;
|
|
|
21
21
|
/**
|
|
22
22
|
* Configuration options for the Pinia test plugin.
|
|
23
23
|
*
|
|
24
|
-
* Combines
|
|
25
|
-
*
|
|
24
|
+
* Combines native Pinia testing options with TestForge-specific
|
|
25
|
+
* controls for managed plugin instances and store initialization.
|
|
26
26
|
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
27
|
+
* Instance capturing is handled internally by TestForge using
|
|
28
|
+
* `captureInstance<TestingPinia>()`.
|
|
29
|
+
*
|
|
30
|
+
* @see `TestingOptions` from `@pinia/testing` for native Pinia testing configuration.
|
|
31
|
+
* @see `PluginControlOptions` from `@testforgejs/vue-test-core` for type-safe instance capturing.
|
|
29
32
|
*/
|
|
30
|
-
|
|
33
|
+
type VueTestPiniaOptions = TestingOptions & PluginControlOptions<TestingPinia> & {
|
|
31
34
|
/**
|
|
32
|
-
* A callback
|
|
35
|
+
* A callback for initializing or modifying Pinia stores after the
|
|
36
|
+
* testing Pinia instance is created and before the component is mounted.
|
|
33
37
|
*
|
|
34
38
|
* @example
|
|
35
39
|
* ```ts
|
|
@@ -39,14 +43,14 @@ interface VueTestPiniaOptions extends TestingOptions, PluginControlOptions<Testi
|
|
|
39
43
|
* mockStores: (pinia) => {
|
|
40
44
|
* const store = useCounterStore(pinia);
|
|
41
45
|
* store.count = 42;
|
|
42
|
-
* }
|
|
43
|
-
* }
|
|
44
|
-
* }
|
|
46
|
+
* },
|
|
47
|
+
* },
|
|
48
|
+
* },
|
|
45
49
|
* });
|
|
46
50
|
* ```
|
|
47
51
|
*/
|
|
48
52
|
mockStores?: MockStoresFn;
|
|
49
|
-
}
|
|
53
|
+
};
|
|
50
54
|
|
|
51
55
|
/**
|
|
52
56
|
* TestForge core type augmentation for Pinia integration.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testforgejs/vue-test-plugin-pinia",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Official TestForge plugin for Pinia integration in component tests",
|
|
6
6
|
"homepage": "https://github.com/testforgejs/testforge#readme",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"pinia": "^3.0.0 || ^4.0.0",
|
|
47
47
|
"@pinia/testing": "^1.0.0 || ^2.0.0",
|
|
48
|
-
"@testforgejs/vue-test-core": "1.0.0-beta.
|
|
48
|
+
"@testforgejs/vue-test-core": "1.0.0-beta.5"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"pinia": "^4.0.0",
|
|
52
52
|
"@pinia/testing": "^2.0.0",
|
|
53
|
-
"@testforgejs/vue-test-core": "1.0.0-beta.
|
|
53
|
+
"@testforgejs/vue-test-core": "1.0.0-beta.5"
|
|
54
54
|
},
|
|
55
55
|
"testforge": {
|
|
56
56
|
"plugin": {
|